Find the O/p of the following
struct node
{
char *name;
int num;
};
int main()
{
struct node s1={"Harry",1331};
struct node s2=s1;
if(s1==s2)
printf("Same");
else
printf("Diff");
}
Answer / sinchan garai
this gives a compile time error.because the coditional
statement "if(s1==s2)" written in the code is not allowable
in C.
| Is This Answer Correct ? | 4 Yes | 2 No |
#include<stdio.h> #include<conio.h> void main() { char ch='\356'; printf("%d",ch); } o/p=-18 why?plz.explain
write a c program to store and print name,address,roll.no of a student using structures?
What are the types of type specifiers?
what is disadvantage of pointer in C
When should you not use a type cast?
What is data structure in c language?
What is mean by data types in c?
difference between function & structure
what is the basis for selection of arrays or pointers as data structure in a program
wt is diference between int and int pointer as same as float and float pointer and char and char pointer
Can you please explain the scope of static variables?
what is the self-referential structure?