Computer Science, asked by poovarasan2020, 1 month ago

int x=(1,2,3);
printf("%d",x);
return 0;
}​

Answers

Answered by madhaviumale
1

Answer:

#include <stdio.h>

#include<conio.h>

int main()

{

int x = 1, 2, 3;

printf("%d", x);

return 0;

}

explanation:

Compile time error

Comma acts as a separator here. The compiler creates an integer variable and initializes it with 1. The compiler fails to create integer variable 2 because 2 is not a valid identifier.

Similar questions