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 |
What is default value of global variable in c?
What math functions are available for integers? For floating point?
Write a program to swap two numbers without using the third variable?
What are the advantages of using Unions?
what is data structure?
WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW IT COME .. #include<stdio.h> #include<conio.h> void main() { int k=20; printf("%d%d%d%d",k,k++,++k,k); getch(); }
how to swap 2 numbers in a single statement?
Write a Program to print this triangle: * ** * **** * ****** * ******** * ********** use two nested loops.
12 Answers MIT, TCS,
Where static variables are stored in c?
How do I swap bytes?
What is the difference between functions getch() and getche()?
Can we use visual studio for c?