#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 is realloc in c?
Is there a way to compare two structure variables?
Why dont c comments nest?
Write a simple code fragment that will check if a number is positive or negative.
What are the advantages of using Unions?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
What is the code in while loop that returns the output of given code?
What do you mean by a local block?
Which function in C can be used to append a string to another string?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Explain how do you determine the length of a string value that was stored in a variable?
What is the use of f in c?
what is the structure pointer?