Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

where are auto variables stored? What are the characteristics of an auto variable?

1072


What are unions in c?

1028


What are the advantages of using macro in c language?

1129


Is it possible to execute code even after the program exits the main() function?

1342


Explain 'bus error'?

1093


Is stack a keyword in c?

1080


What is the purpose of scanf() and printf() functions?

1243


Are enumerations really portable?

1025


What are the functions to open and close file in c language?

1203


How #define works?

1104


What does 3 periods mean in texting?

1058


What is the scope of local variable in c?

1131


What is volatile variable how do you declare it?

1098


Why #include is used in c language?

1052


Is c still relevant?

1082