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

in a town the percentage of men is 52 the percentage of total literacy is 48 if total percentage of literate men is 35 of the total population write a program to find the total no of the literate men and women if the population of the town is 80000

3 Answers  


how 2 compile & execute c program with out using editor?

2 Answers   HP,


What is time complexity c?

0 Answers  


Do you know what is the purpose of 'extern' keyword in a function declaration?

0 Answers  


what is the difference between these initializations? Char a[]=”string”; Char *p=”literal”; Does *p++ increment p, or what it points to?

4 Answers  






which of the function operator cannot be over loaded a) <= b)?: c)== d)*

10 Answers   Cisco, CTS, Google, HCL, HP,


sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?

2 Answers  


what is reason of your company position's in india no. 1.

0 Answers   Accenture, TCS,


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

0 Answers  


In header files whether functions are declared or defined?

1 Answers   TCS,


print the following using nested for loop. 5 4 3 2 1 1 2 3 4 3 2 1 1 2 1 2 1 1 2 3 4 3 2 1 1 2 3 4 5

7 Answers   IBM,


can we print any string in c language without using semicolon(;)(terminator) in whole program.

11 Answers  


Categories