• edited by
921 views
0 0 votes

   

#include<stdio.h>
int main()
{
   int a = 15;
   printf("%d\n",++a);
   printf("%d\n",a++);
   printf("%d\n",--a);
   printf("%d\n",a--);
   return 0;
}
  1. 16,16,16,16
  2. 15,13,15,15
  3. 16,15,14,14
  4. 16,16,14,14

Please log in or register to answer this question.

Position:
Show:

Related questions

1 1 vote
3 3 answers
4.4k
4.4k views
suneetha asked Aug 22, 2017
4,402 views
#include <stdio.h void main() { int a = 3; int b = ++a + a++ + a; printf("Value of b is %d", b); }after compiling o...
0 0 votes
3 answers 3 answers
846
846 views
shivamSK asked Jun 8, 2024
846 views
answer the output#include <stdio.h int main() { int x=0; x++; if( x){ x=x++; if(x){ printf("hello"); }else{ printf("%d",x); } }else{ x=x+5; if(x){ printf("i win x times")...
12 12 votes
2 2 answers
379
379 views
GO Classes asked Jun 3
379 views
What is the output of the following code?#include <stdio.h int main() { int x = 3, y = 4, z; z = x++ + ++y; printf("%d %d %d", x, y, z); return 0; }$\texttt{4\ 5\ 8}$ $\t...
8 8 votes
3 3 answers
529
529 views
GO Classes asked Jun 2
529 views
What is the output of the following code?#include <stdio.h int main() { int x = 5; printf("%d", x++); printf("%d", ++x); return 0; }$57$ $67$ Compilation error Undefined ...