- 1

modify operator

int a=21; int b=a++ / ++a; int c=b-- * --b; find the value of a, b and c?

31st Aug 2022, 4:13 AM
Mahima Bhardwaj
Mahima Bhardwaj - avatar
4 Réponses
0
Hi! what are your guesses?
31st Aug 2022, 5:38 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
#include <stdio.h> int main() { int x=20; x=x++ + --x; printf(" x value:%d \n",x--); return 0; }
31st Aug 2022, 7:14 AM
Harsh Nama
Harsh Nama - avatar
0
Try this code
31st Aug 2022, 7:15 AM
Harsh Nama
Harsh Nama - avatar
0
according to me it should be a=23,b=-1,c=0
1st Sep 2022, 4:08 AM
Mahima Bhardwaj
Mahima Bhardwaj - avatar