Answer Posted / raj kumar
struct can hold multiple data types.
Like u can define a date structure....
but union can multiple data types which includes struct also
union x
{
int x;
struct
{
...
...
}
}
Is This Answer Correct ? | 2 Yes | 7 No |
Post New Answer View All Answers
What is the difference between volatile and const volatile?
What is wrong with this initialization?
What is a MAC Address?
Why do we use int main?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What are loops c?
What is difference between array and structure in c?
What is the difference between a free-standing and a hosted environment?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What is dangling pointer in c?
Explain how can I read and write comma-delimited text?
How are portions of a program disabled in demo versions?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Can the curly brackets { } be used to enclose a single line of code?