void main()
{
int i=5;
printf("%d",i+++++i);
}

Answer Posted / visu

i+++++i=i++ + ++i
remember this expression is nothing but adding two i's

now unary operators hav higher precedence than binary
=>++ executes first
so i++ =5 (since value changes after statement)
and ++i makes it i=6

as i said its jus adding to i's
now ans=i+i=6+6=12

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is console in c language?

616


find the sum of two matrices and WAP for it.

639


What is string in c language?

630


Is register a keyword in c?

639


What is the data segment that is followed by c?

617






How is a structure member accessed?

592


Explain what are the standard predefined macros?

655


What is the use of a ‘’ character?

589


i want to know the procedure of qualcomm for getting a job through offcampus

1945


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

591


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1598


Why is a semicolon (;) put at the end of every program statement?

631


What are reserved words with a programming language?

606


What is the time and space complexities of merge sort and when is it preferred over quick sort?

678


What do mean by network ?

661