• closed by
471 views
0 0 votes
closed with the note: undefined behaviour
#include <stdio.h>

int main()
{
    int x = 3;
    int z = (++x)+ (x = 10);
    printf("%d", z);
    return 0;
}
 
Position:
Show:

Related questions

6 6 votes
1 1 answer
6.8k
6.8k views
Satbir asked Jun 1, 2019
6,788 views
#include<stdio.h #include<stdlib.h int main(void) { int maxLineCount = 500, maxCharCount = 500, index, j, count; char *line = NULL; size_t size; char *a[maxLineCount]; fo...
1 1 vote
1 1 answer
1.8k
1.8k views
dixit bishwash asked Mar 31, 2018
1,771 views
The Correct answer is c but how?int main(){ int a=210,b=120,c; c=a>b?1,2,3:2,5,6,7; printf("%d",c);}ans:-a) 1b) 2c) 3d) Error.
5 5 votes
3 answers 3 answers
669
669 views
Vyshakh_Nambiar asked Dec 8, 2025
669 views
Should this question be invalid? t[4] Mentions 4 elements, but question assigns 5 elements.Because according to my knowledge accessing element t[4] (if we consider index ...