Computer Science, asked by tappasaiteja998, 4 months ago


What is the output of this program?void main()
{ int x = 10; float x = 10; printf("%d", x)}

Answers

Answered by krishnas10
8

Answer:

error

Explanation:

It shows error as you are defining two different type of values for same variable x

Answered by adventureisland
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