Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


#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



#include<stdio.h> #include<conio.h> struct stu { int i; char j; }; union un..

Answer / swastika chatterjee

32

Is This Answer Correct ?    3 Yes 2 No

#include<stdio.h> #include<conio.h> struct stu { int i; char j; }; union un..

Answer / rohit

84

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More C Interview Questions

Explain zero based addressing.

0 Answers  


Is c a great language, or what?

0 Answers  


What is external variable in c?

0 Answers  


what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??

5 Answers  


Here is a good puzzle: how do you write a program which produces its own source code as output?

0 Answers  


Write a program to generate prime factors of a given integer?

9 Answers   Microsoft,


Write a program for print infinite numbers

3 Answers   Wipro,


1 What is a Data Structure?

1 Answers  


Write a code to reverse string seperated by spaces i/p str=India is my country o/p str=aidnI si ym yrtnuoc After writing code, optimize the code

1 Answers  


Explain what standard functions are available to manipulate strings?

0 Answers  


what does keyword ‘extern’ mean in a function declaration?

1 Answers   Emerson,


Where define directive used?

0 Answers  


Categories