What is the output of the program? '
#include<stdio.h>
#include<conio.h>
void main()
{
int **i;
int *j=0;
i=&j;
clrscr();
if(NULL != i && NULL != *i)
printf("hello”);
getch();
}
It might not print anything because the pointer variable j is not pointing to any variable... But i m not sure let me know if this is not the right ans.
the condition part may cause any error...
ReplyDeletem not sure....
It might not print anything because the pointer variable j is not pointing to any variable...
ReplyDeleteBut i m not sure let me know if this is not the right ans.
Output: No Output
ReplyDeleteExplanation: Initializing pointer with integer zero is equal to
initializing pointer variable to NULL.
There is no ERROR.
ReplyDelete