what will be the output of this program?
void main()
{
int a[]={5,10,15};
int i=0,num;
num=a[++i] + ++i +(++i);
printf("%d",num);
}
Answer Posted / abc
initially i=0;
num=a[++i]+ ++i + ++i;
num=a[1]+2+3
num=10+2+3=15
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write a program to reverse a given number in c language?
Define VARIABLE?
What is the difference between #include
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
Why header files are used?
What are different types of operators?
What is auto keyword in c?
What is the significance of c program algorithms?
What is c language in simple words?
What is c language & why it is used?
what do you mean by inline function in C?
Explain about C function prototype?
How do you define a function?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What's the right way to use errno?