adplus-dvertising
frame-decoration

Question

Choose a correct statement regarding automatic variables.

a.

#include<stdio.h>
main()

{
auto int a;
printf("%d", a);
}

//output is compiler error. a is not initialized.

b.

#include<stdio.h>
main()

{
auto int a;
printf("%d", a);
}

//output = 0

c.

#include<stdio.h>
main()

{
auto int a;
printf("%d", a);
}

//output = null

d.

#include<stdio.h>
main()

{
auto int a;
printf("%d", a);
}

//output = some random number

Posted under C Programming

Answer: (d).#include<stdio.h>
main()

{
auto int a;
printf("%d", a);
}

//output = some random number

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Choose a correct statement regarding automatic variables.

Similar Questions

Discover Related MCQs

Q. Operator % in C Language is called

Q. Output of an arithmetic expression with integers and real numbers is ___ by default.

Q. If both numerator and denominator of a division operation in C language are integers, then we get?

Q. Can you use C Modulo Division operator % with float and int?

Q. What is the priority of operators *, / and % in C language?

Q. In C language, which Operator group has more priority between (*, / and %) and (+, -) groups?

Q. Associativity of C Operators *, /, %, +, - and = is

Q. What is the Priority among (*, /, %), (+, -) and (=) C Operators?

Q. Choose a C Conditional Operator from the list.

Q. What is the other name for C Language ?: Question Mark Colon Operator?

Q. Choose a syntax for C Ternary Operator from the list.

Q. Choose a correct statement regarding C Comparison Operators.

Q. Choose a statement to use C If Else statement.

Q. Choose a correct C Statement using IF Conditional Statement.

Q. What are Nibble, Word and Byte in computer language?

Q. Choose correct representation of Decimal number in Binary.

Q. What is the operator used to make 1's One's compliment?

Q. What is the result of 0110 & 1100?

Q. What is the output of Bitwise OR operation | on (0110 | 1100)?

Q. What is the output of Exclusive OR ^ operator on 0110^1000?