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


Please Help Members By Posting Answers For Below Questions

What is a null pointer in c?

826


How can I prevent another program from modifying part of a file that I am modifying?

829


What is dynamic variable in c?

780


Explain is it better to bitshift a value than to multiply by 2?

941


What are the advantages of using new operator as compared to the function malloc ()?

1050


What does c value mean?

855


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(); }

2063


What do you mean by c what are the main characteristics of c language?

788


There seem to be a few missing operators ..

803


What are the advantages of using macro in c language?

804


What is the use of printf() and scanf() functions?

814


What is string in c language?

825


What are header files and explain what are its uses in c programming?

832


When should you not use a type cast?

881


Describe explain how arrays can be passed to a user defined function

844