what is structuer?
Answers were Sorted based on User's Feedback
Answer / ashish
A structure is a collection of variables under a single name.
These variables can be of different types, and each has a name
which is used to select it from the structure. A structure is
a convenient way of grouping several pieces of related
information together.
A structure can be defined as a new named type, thus extending
the number of available types. It can use other structures,
arrays or pointers as some of its members, though this can get
complicated unless you are careful.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / mayur dharmik
1. Structure is USER DATA TYPE,
2. It is the collection of Similar OR Dissimilar data type
of element to create new data type.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dharmaraj
A STRUCTURE IS "ALL THE DATAS TO SAVING IN ONE UNIT "AND
CALLED IN SINGLE NAME.
the structur is used in use "struct" keyword.
[e.g]
struct struct_name()
{
-----
-----
}
| Is This Answer Correct ? | 0 Yes | 1 No |
how can f be used for both float and double arguments in printf? Are not they different types?
Explain how can I read and write comma-delimited text?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
Program to find largest of three numbers without using comparsion operator?
Are the variables argc and argv are local to main?
Which one would you prefer - a macro or a function?
what is the code to display color fonts in the output?
Explain how do you determine whether to use a stream function or a low-level function?
What are static functions?
Write a C program that reads a series of strings and prints only those ending in "ed"
pointer_variable=(typecasting datatype*)malloc(sizeof(datatype)); This is the syntax for malloc?Please explain this,how it work with an example?
2 Answers eClerx, Excel, kenexa,
main() { char as[] = "\\0\0"; int i = 0; do{ switch( as[i++]) {case '\\' : printf("A"); break; case 0 : printf("B"); break; default : printf("C"); break; }} while(i<3); }
4 Answers Vector, Vector India,