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
What is console in c language?
find the sum of two matrices and WAP for it.
What is string in c language?
Is register a keyword in c?
What is the data segment that is followed by c?
How is a structure member accessed?
Explain what are the standard predefined macros?
What is the use of a ‘ ’ character?
i want to know the procedure of qualcomm for getting a job through offcampus
Can you define which header file to include at compile time?
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..
Why is a semicolon (;) put at the end of every program statement?
What are reserved words with a programming language?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What do mean by network ?