#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
Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.
WHAT IS C?
What are dynamically linked and statically linked libraries?
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }
How can I pad a string to a known length?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Describe the difference between = and == symbols in c programming?
Why calloc is better than malloc?
State the difference between realloc and free.
how to determine the complexity of an algorithm as log(n)
How can a program be made to print the line number where an error occurs?
How can I ensure that integer arithmetic doesnt overflow?