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 a null pointer in c?
How can I prevent another program from modifying part of a file that I am modifying?
What is dynamic variable in c?
Explain is it better to bitshift a value than to multiply by 2?
What are the advantages of using new operator as compared to the function malloc ()?
What does c value mean?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What do you mean by c what are the main characteristics of c language?
There seem to be a few missing operators ..
What are the advantages of using macro in c language?
What is the use of printf() and scanf() functions?
What is string in c language?
What are header files and explain what are its uses in c programming?
When should you not use a type cast?
Describe explain how arrays can be passed to a user defined function