union
{
char ch[10];
short s;
}test;
test.s = 0xabcd;
main()
{
printf("%d",ch[10]);
}
Answer Posted / vipul
the program is incorrect bcz in main function %d is used for integer type value and union is same as the structure and there is no return type in the main function thus it will return a charter type value,
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is context in c?
plz let me know how to become a telecom protocol tester. thank you.
List the variables are used for writing doubly linked list program.
can we change the default calling convention in c if yes than how.........?
Why is C language being considered a middle level language?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What is modeling?
What is volatile c?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What are the salient features of c languages?
What is string in c language?
What is oops c?
What is extern c used for?
What is the deal on sprintf_s return value?