#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 / swastika chatterjee
32
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What are register variables? What are the advantage of using register variables?
What happens if you free a pointer twice?
What is strcmp in c?
What is the purpose of ftell?
What is a MAC Address?
Write a program to implement queue.
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What are the ways to a null pointer can use in c programming language?
What is clrscr in c?
Is it possible to initialize a variable at the time it was declared?
Write a code to generate a series where the next element is the sum of last k terms.
What functions are used for dynamic memory allocation in c language?
What is difference between main and void main?
How can I remove the trailing spaces from a string?
How to write c functions that modify head pointer of a linked list?