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
what do you mean by enumeration constant?
Explain what is the difference between null and nul?
Why void main is used in c?
How can you convert integers to binary or hexadecimal?
What is .obj file in c?
What are the different types of constants?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What does s c mean on snapchat?
What is a program?
Explain what is wrong with this statement? Myname = ?robin?;
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
Explain pointers in c programming?
What are the features of the c language?
What is the difference between functions abs() and fabs()?
Place the #include statement must be written in the program?