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 |
What is the use of getch ()?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
print 1-50 with two loop & two print Statement
What are linker error?
main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above
What is substring in c?
How can you determine the size of an allocated portion of memory?
What are run-time errors?
What is a symbolic constant?
What is the use of bit field?
Can you think of a way when a program crashed before reaching main? If yes how?
What is indirection? How many levels of pointers can you have?