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 |
What is int main () in c?
Can one function call another?
When should a far pointer be used?
#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....?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What is the difference between fork() and vfork()?
Is main a keyword in c?
change to postfix a/(b+c*d-e)
IS STRUCTURES CAN BE USED WITHIN AN ARRAY?
what is difference between strcmp & palindrome?
What is an identifier?
What is typedef example?