What's the difference between struct x1 { ... }; and
typedef struct { ... } x2; ?
Answer Posted / vikraman85
In the first its simply structure,by declaring structure
variable accessors we can access those elements inside the
structure..
eg.struct x1 a,b,c;
In the next one the x2 acts as a datatype..
b'coz of the typedef function..
we can use x2 as datatype for the further calculations like
int,float which are predefined datatypes,but this is
manually defined datatype..
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
Explain the process of converting a Tree into a Binary Tree.
Define macros.
How are portions of a program disabled in demo versions?
What are external variables in c?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is the use of bit field?
what is bit rate & baud rate? plz give wave forms
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What is the role of this pointer?
can any one provide me the notes of data structure for ignou cs-62 paper
List the difference between a While & Do While loops?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
How do you search data in a data file using random access method?
How do I create a directory? How do I remove a directory (and its contents)?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings