What is an anonymous union and where to apply that ?
Answers were Sorted based on User's Feedback
An anonymous union is a union without a name. It cannot be
followed by a declarator. An anonymous union is not a type;
it defines an unnamed object.
The member names of an anonymous union must be distinct
from other names within the scope in which the union is
declared. You can use member names directly in the union
scope without any additional member access syntax.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / priya
Anonymous unions are unions that are declared without a class-name or declarator-list.
union { member-list }
Such union declarations do not declare types
but they declare objects
They must also be declared as static if
declared in file scope. If declared in local scope
they must be static or automatic.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / monisha
anonymous union is a class name.it cannot be followed by
the declarator.it must be declared with the keyword
static.it cannot have protected and private members.
| Is This Answer Correct ? | 2 Yes | 0 No |
How can we open a file in Binary mode and Text mode?what is the difference?
What is the restrict keyword in C?
write a c program to store and print name,address,roll.no of a student using structures?
Sir i want e-notes of C languge of BAlaguruswami book i.e scanned or pdf file of balaguruswamy book on c language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com
What kind of structure is a house?
What is the size of a union variable?
Write a program which has the following seven functions. The functions should be: • main() this calls the other 6 functions • fget_long() a function which returns a long data type from a file • fget_short() a function which returns a short integer variable from a file • fget_float() a function which returns a floating point variable from a file • fprt_long() a function which prints its single, long argument into a file • fprt_short() a function which prints its single, short argument into a file • fprt_float() a function which prints its single, floating point argument into a file. You should use fscanf() to get the values of the variables from the input (the file) and fprintf() to print the values to the other file. Pay attention to using the correct format for each of the data types.
If we give two names then this displays the connection between the two people. It is nothing but flames game
write a function for strtok()??
What is a symbolic constant?
i have a written test for microland please give me test pattern
There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.