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

what will be the output?
}

Answer Posted / aniruddha

It will print answer 1 because in case of++ atfairt assing
and then increment..

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the process to create increment and decrement stamen in c?

585


How do you redirect a standard stream?

620


What is the use of header files?

600


Can 'this' pointer by used in the constructor?

609


writ a program to compare using strcmp VIVA and viva with its output.

1519






Explain low-order bytes.

622


What is the advantage of c?

608


Describe newline escape sequence with a sample program?

653


What is break statement?

630


What does. int *x[](); means ?

634


Why isn't any of this standardized in c? Any real program has to do some of these things.

623


What does do in c?

606


Why does not c have an exponentiation operator?

627


How many types of arrays are there in c?

591


What are control structures? What are the different types?

595