‎How to define structures? · ‎



‎How to define structures? · ‎..

Answer / Jeetendra Kumar

To define a structure in C, you use the 'struct' keyword followed by the name of the structure and a set of curly braces containing the names of its members. The members can be variables of any data type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is int main () in c?

1 Answers  


Can one function call another?

1 Answers  


When should a far pointer be used?

1 Answers   Aspire, Infogain,


#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?

1 Answers  


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

1 Answers  


What is the difference between fork() and vfork()?

2 Answers  


Is main a keyword in c?

1 Answers  


change to postfix a/(b+c*d-e)

8 Answers   Value Labs,


IS STRUCTURES CAN BE USED WITHIN AN ARRAY?

7 Answers   Caritor,


what is difference between strcmp & palindrome?

3 Answers  


What is an identifier?

1 Answers  


What is typedef example?

1 Answers  


Categories