Elearning , Interview Questions And Answers

Google

void main(void) { NewType *c; c=(NewType *)malloc(sizeof(NewType)); c->i=100; c->c='C'; (*c).x=100L; printf("(%d,%c,%4Ld)",c->i,c->c,c->x); } Q33) Find the output for the following C program #include<stdio.h> void main(void); const int k=100; void main(void) { int a[100]; int sum=0; for(k=0;k<100;k++) *(a+k)=k; sum+=a[--k]; printf("%d",sum); } ___________________________________________ Ramco Sample Paper #1 Directions: Each of the following question has a question and two statements labelled as (i) and (ii). Use the data/information given in (i) and (ii) to decide whether the data are sufficient to answer the question record your answer as A) If you can get the answer from (1)alone but not from (2) B) If you can get the answer from (2)alone but not from (1) C) If can get the answer from (1)and (2)together ,although neither statement by itself suffice D) If statement (1)alone suffices and statement (2) alone also suffice. E) If can't get the answer from statements (1) and (2) together and you need more data. Q1)What will be the population of city X in 1991?