main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / vyasaraj.s
The output is 3
Is This Answer Correct ? | 21 Yes | 7 No |
Post New Answer View All Answers
i have a written test for microland please give me test pattern
Why we use int main and void main?
Does sprintf put null character?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
why programs in c are running with out #include
What is a #include preprocessor?
Why enum is used in c?
When can you use a pointer with a function?
Tell me when is a void pointer used?
Is c is a low level language?
Explain about block scope in c?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What is unsigned int in c?
Explain union.
hi send me sample aptitude papers of cts?