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


Please Help Members By Posting Answers For Below Questions

Which of these functions is safer to use : fgets(), gets()? Why?

633


Is it valid to address one element beyond the end of an array?

674


Is null a keyword in c?

732


How do I create a directory? How do I remove a directory (and its contents)?

604


What is s or c?

596






How can I pad a string to a known length?

610


Explain the use of #pragma exit?

699


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.

2650


Can we increase size of array in c?

540


Why & is used in scanf in c?

623


Explain how can I make sure that my program is the only one accessing a file?

623


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

1451


Do you know the difference between exit() and _exit() function in c?

607


Why do we need arrays in c?

581


Is c is a low level language?

563