#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.
Answers were Sorted based on User's Feedback
how to do in place reversal of a linked list(singly or doubly)?
find the size of structure without using the size of function
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is difference between stdio h and conio h?
Are there any problems with performing mathematical operations on different variable types?
What is header file in c?
what is the purpose of the following code, and is there any problem with the code? void fn(long* p1, long* p2) { register int x = *p1; register int y = *p2; x ^= y; y ^= x; x ^= y; *p1 = x; *p2 = y; }
in malloc and calloc which one is fast and why?
In a switch statement, explain what will happen if a break statement is omitted?
What is a string?
Explain 'bus error'?
Is there any book to know about Basics of C Language?