struct tag{
auto int x;
static int y;
};main()
{
struct tag s;
s.x=4;
s.y=5;
printf(“%d”,s.x);
}
Answer Posted / 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 |
Post New Answer View All Answers
What is methods in c?
Explain what happens if you free a pointer twice?
Why header file is used in c?
What are the 32 keywords in c?
How does #define work?
What is scanf () in c?
When should a type cast not be used?
Is c a great language, or what?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What is a stream water?
Can you please explain the difference between exit() and _exit() function?
What is "Duff's Device"?
Which is better malloc or calloc?