#include<stdio.h>
#include<conio.h>
struct stu
{
int i;
char j;
};
union uni
{
int i;
char j;
};
void main()
{
int j,k;
clrscr();
struct stu s;
j=sizeof(s);
printf("%d",j);
union uni u;
k=sizeof(u);
printf("%d",k);
getch();
}
what is value of j and k.
Answer Posted / rohit
84
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How do you declare a variable that will hold string values?
What is getch?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Why is it usually a bad idea to use gets()? Suggest a workaround.
What is s in c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What is the use of volatile?
What are the similarities between c and c++?
How can I delete a file?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
Is that possible to store 32768 in an int data type variable?
When should a type cast be used?
What is the difference between null pointer and wild pointer?
how do you execute a c program in unix.
What is malloc() function?