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 does %c do in c?
Explain union. What are its advantages?
What is dynamic memory allocation?
What is the ANSI C Standard?
What is data types?
How does C++ help with the tradeoff of safety vs. usability?
I have an array of 100 elements. Each element contains some text. i want to: append a star character to the end of every fifth element remove every second character from every tenth element, and… add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters.
What is integer constants?
how logic is used
Explain #pragma statements.
Explain the properties of union.
Predict the output or error(s) for the following: 25. main() { printf("%p",main); }