struct tag{
auto int x;
static int y;
};main()
{
struct tag s;
s.x=4;
s.y=5;
printf(“%d”,s.x);
}
Answers were Sorted based on User's Feedback
Answer / vishal soni
There is errors......
Because auto can't write in structure scope.... It is in functions
| Is This Answer Correct ? | 13 Yes | 3 No |
How do I get an accurate error status return from system on ms-dos?
Write a program to print distinct words in an input along with their count in input in decreasing order of their count..
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
what is constant pointer?
how to reverse string "Hello World" by using pointers only. Without any temp var
what are the advantages of a macro over a function?
Explain is it better to bitshift a value than to multiply by 2?
How. To pass the entrance test
Is stack a keyword in c?
what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }
Write a program to reverse a given number in c language?
why r u join this company? give solid resons.
16 Answers IBM, Infosys, TCS,