-
What is the output of this C code?
#include <stdio.h>
int main()
{
printf("My Name is - %d \n", myName);
return 0;
}
-
- My Name is - myName;
- My Name is - followed by a junk value
- Compile time error
- My Name is -
Correct Option: C
It results in an error since myName is used without declaring the variable myName.