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



struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(“%d”..

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

struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(“%d”..

Answer / prasha patel

4

Is This Answer Correct ?    6 Yes 7 No

Post New Answer

More C Interview Questions

what does the following function print? func(int i) { if(i%2)return 0; eale return 1; } main() { int =3; i=func(i); i=func(i); printf("%d",i);}

9 Answers   TCS,


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

0 Answers   Infosys,


class foo { public: static int func(const char*& p) const; }; This is illegal, why?

8 Answers   Google,


What is the use of keyword VOLATILE in C?

1 Answers  


What's wrong with "char *p; *p = malloc(10);"?

5 Answers  






how to use showbits function?

2 Answers   Infosys, TATA,


I heard that you have to include stdio.h before calling printf. Why?

0 Answers  


Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +

1 Answers  


What is the difference between the expression “++a” and “a++”?

0 Answers  


Convert the following expression to postfix and prefix X $ Y Z - M + N + P / Q / (R + S)

2 Answers  


Write a program to compare two strings without using the strcmp() function

42 Answers   Accenture, Arba Minch University,


c program to add and delete an element from circular queue using array

3 Answers  


Categories