Multiple choice technology programming languages

void main() { struct { int EmpNo; } var; var.EmpNo=193149; printf("EmpNo: %d",var.EmpNo); }

  1. Compilation Error - Struct cannot be defined without a name

  2. 193149

  3. Compilation Error - Struct cannot be defined inside a Function

  4. Some Random Number

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In C, you can define an anonymous structure and instantiate it immediately (struct { ... } var;). This is valid inside a function, and the code will print the assigned integer value 193149.