main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / pragathi
3 is the answer bcoz
i=1
num[i]=i++;
num[1]=2;
here i=2
printf("%d", num[2]);
here 3 is there at position 2 .
so answer is 3
| Is This Answer Correct ? | 19 Yes | 3 No |
Post New Answer View All Answers
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What are the two types of functions in c?
Do you know null pointer?
What is hash table in c?
How can I do graphics in c?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
What does the function toupper() do?
What is nested structure in c?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What are type modifiers in c?
Why is C language being considered a middle level language?
What is the need of structure in c?
What is header file definition?
What is variable declaration and definition in c?
How to establish connection with oracle database software from c language?