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

Is c still relevant?

0 Answers  


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

0 Answers  


Please provide question papers of NATIONAL INFORMATICS CENTRE for Scientific officer

0 Answers  


Explain how can you tell whether two strings are the same?

0 Answers  


write a c programme for add of two numbers with out use of arthematic operators

2 Answers  






What does *p++ do? What does it point to?

0 Answers  


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

0 Answers  


WAP – represent a char in binary format

4 Answers   Motorola, Wipro,


how can i include my own .h file EX:- alex.h like #include<alex.h>, rather than #include"alex.h"

1 Answers  


write a program to interchange the value between two variable without using loop

1 Answers  


/*what is the output for the code*/ void main() { int r; r=printf("naveen"); r=printf(); printf("%d",r); getch(); }

1 Answers   CDAC,


What is equivalent to ++i+++j?

0 Answers  


Categories