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 are 3 types of structures?
What are the 5 types of organizational structures?
What are the ways to a null pointer can use in c programming language?
How to implement a packet in C
Why can't I perform arithmetic on a void* pointer?
Can a variable be both const and volatile?
What are the c keywords?
Define recursion in c.
Can i use “int” data type to store the value 32768? Why?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
Why do we use header files in c?
Is c easy to learn?
code for quick sort?
What is structure and union in c?
What is the importance of c in your views?