main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}

what will be the output?
}

Answer Posted / raju

correct answer is 2 bcz once assign only that will take as
that value

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are header files in c programming?

653


Is null equal to 0 in sql?

650


What is the difference between volatile and const volatile?

561


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1014


Why c is faster than c++?

629






Can we declare function inside main?

564


Can we initialize extern variable in c?

630


What is difference between Structure and Unions?

637


In which language linux is written?

601


can we have joblib in a proc ?

1653


What is scanf () in c?

661


What do you mean by command line argument?

642


What is the difference between struct and typedef struct in c?

655


What is c language and why we use it?

620


What is pointer & why it is used?

602