#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


Please Help Members By Posting Answers For Below Questions

What are register variables? What are the advantage of using register variables?

683


What happens if you free a pointer twice?

608


What is strcmp in c?

596


What is the purpose of ftell?

599


What is a MAC Address?

626






Write a program to implement queue.

666


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

2516


What are the ways to a null pointer can use in c programming language?

588


What is clrscr in c?

673


Is it possible to initialize a variable at the time it was declared?

755


Write a code to generate a series where the next element is the sum of last k terms.

732


What functions are used for dynamic memory allocation in c language?

600


What is difference between main and void main?

627


How can I remove the trailing spaces from a string?

613


How to write c functions that modify head pointer of a linked list?

544