main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / sathya
num[i]=i+1
num[1]=1+1=2, but num[1] is 1.so there is a error...
| Is This Answer Correct ? | 4 Yes | 13 No |
Post New Answer View All Answers
Describe explain how arrays can be passed to a user defined function
What is call by reference in functions?
Write a program to reverse a given number in c?
write a c program in such a way that if we enter the today date the output should be next day's date.
C program to find all possible outcomes of a dice?
What is an expression?
Define Spanning-Tree Protocol (STP)
Why we use stdio h in c?
Define Array of pointers.
What is output redirection?
Do you know pointer in c?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Explain what is the benefit of using #define to declare a constant?
What is calloc in c?
Explain what’s a signal? Explain what do I use signals for?