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 the difference between single charater constant and string constant?
What is #line in c?
please give me some tips for the placement in the TCS.
What is a built-in function in C?
Subtract Two Number Without Using Subtraction Operator
Why can arithmetic operations not be performed on void pointers?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Is exit(status) truly equivalent to returning the same status from main?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What is typedef struct in c?
What is variable and explain rules to declare variable in c?
What is property type c?
Is it better to bitshift a value than to multiply by 2?
How can I convert a number to a string?
Does c have function or method?