main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / revathi
Correct Answer is 3.
Do not post wrong answer.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which of these functions is safer to use : fgets(), gets()? Why?
Is it valid to address one element beyond the end of an array?
Is null a keyword in c?
How do I create a directory? How do I remove a directory (and its contents)?
What is s or c?
How can I pad a string to a known length?
Explain the use of #pragma exit?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
Can we increase size of array in c?
Why & is used in scanf in c?
Explain how can I make sure that my program is the only one accessing a file?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
Do you know the difference between exit() and _exit() function in c?
Why do we need arrays in c?
Is c is a low level language?