GeeksforGeeks » C/C++ Programming Questions
What is the output?
(2 posts)-
#include<stdio.h> int main(void) { char *p = NULL; { char c='A'; p = &c; } putchar(*p); putchar(c); getchar(); return 0; } -
It will give an error ( c is undeclared), because scope of c is with in the blocks.we can't use c outside the block without declaration.
Reply
You must log in to post.