What will be the output of the following program?
void main() { int i; char a[ ] =” \0 ”; if (printf(“%s\n”, a)) printf (“ok \n”); else printf(“program error \n”); }
- (A) ok
- (B) progam error
- (C) no output
- (D) compilation error
ask and answer | learn and let learn
What will be the output of the following program?
void main() { int i; char a[ ] =” \0 ”; if (printf(“%s\n”, a)) printf (“ok \n”); else printf(“program error \n”); }