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 / chanda_ni

1

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are structure passing and returning implemented?

581


Why does notstrcat(string, "!");Work?

628


What is difference between main and void main?

611


Differentiate between new and malloc(), delete and free() ?

655


Explain can static variables be declared in a header file?

659






Explain what is dynamic data structure?

630


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

613


Explain bit masking in c?

618


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

600


Which one would you prefer - a macro or a function?

588


how do you programme Carrier Sense Multiple Access

1501


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

561


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

709


Is c is a low level language?

551


Can a void pointer point to a function?

558