Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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


Please Help Members By Posting Answers For Below Questions

What is local and global variable in c?

199


If errno contains a nonzero number, is there an error?

267


what are the 10 different models of writing an addition program in C language?

1051


How many main () function we can have in a project?

207


write a c program in such a way that if we enter the today date the output should be next day's date.

1286






Explain Function Pointer?

256


What is zero based addressing?

276


What is c language in simple words?

208


What is a class c rental property?

167


What is the need of structure in c?

200


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1019


What is structure in c language?

221


What is meant by initialization and how we initialize a variable?

206


Can stdout be forced to print somewhere other than the screen?

224


What is the difference between memcpy and memmove?

211