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
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What is the difference between ‘g’ and “g” in C?
Are there namespaces in c?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
where are auto variables stored? What are the characteristics of an auto variable?
What is const and volatile in c?
Which node is more powerful and can handle local information processing or graphics processing?
What is the difference between c &c++?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
How do I use strcmp?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What does do in c?
List the variables are used for writing doubly linked list program.
Is null valid for pointers to functions?
How can I manipulate individual bits?