What is the output of this program?void main()
{ int x = 10; float x = 10; printf("%d", x)}
Answers
Answered by
8
Answer:
error
Explanation:
It shows error as you are defining two different type of values for same variable x
Answered by
0
The output of this program is a Conflicting error.
Conflicting Error :
- Conflicting Types for Error - This is a frequent programming error that happens when the parameters/arguments types in the function declaration and definition are incompatible.
- Because the declaration and definition of "func" are incompatible, this error occurs at compilation time.
- For Example :
Error: conflicting types for ‘x’
float x=10;
Similar questions