What is the output for the following program
#include<stdio.h>
main()
{
char a[5][5],flag;
a[0][0]='A';
flag=((a==*a)&&(*a==a[0]));
printf("%d\n",flag);
}
Answer Posted / sri
output is 1 but this prg display 2 warning (ie) Nonportable
pointer comparsion
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is function prototype?
Why is c called c not d or e?
Explain about C function prototype?
write a program to find out prime number using sieve case?
Is a pointer a kind of array?
why do some people write if(0 == x) instead of if(x == 0)?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
Can you write a programmer for FACTORIAL using recursion?
Why doesnt that code work?
What is union in c?
What is the use of printf() and scanf() functions?
Why c is called a middle level language?
Can you please explain the difference between syntax vs logical error?
What is printf () in c?
What do the functions atoi(), itoa() and gcvt() do?