adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
int main(){
    void  num=10;
 printf("%v", num);
 return 0;
}

a.

Compilation error

b.

10

c.

Garbage value

d.

0

Answer: (a).Compilation error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?