what is the output of below

int n=10;
(n++)++;
printf("%d",n);

Answer Posted / kirankumaryakkala

ans. error:Lvalue required
why? Lvalue means leftside assignment value,
here, first it goes to increment on N, again it is going to
increment, before going to increment second time, you should
allocate one varibale that holds the first time increment
value, other wise from where to it increment...

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how many key words availabel in c a) 28 b) 31 c) 32

637


What is the heap in c?

647


Can you define which header file to include at compile time?

596


What are the advantages of c preprocessor?

722


What is the difference between malloc() and calloc()?

621






What are disadvantages of C language.

653


What is cohesion in c?

545


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

574


How can I write a function analogous to scanf?

663


What is void c?

575


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

774


What are variables c?

628


What is sizeof int in c?

613


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1527


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

630