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 do you mean by dynamic memory allocation in c? What functions are used?
Why shouldn’t I start variable names with underscores?
What does p mean in physics?
What are the benefits of c language?
What is data type long in c?
In C language, a variable name cannot contain?
What is difference between stdio h and conio h?
Is it valid to address one element beyond the end of an array?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What is the use of function in c?
Is file a keyword in c?
List a few unconditional control statement in c.
Can the curly brackets { } be used to enclose a single line of code?