How much is size of struct having 1 char & 1 integer?
Answer Posted / chinmay
#include<stdio.h>
#include<conio.h>
void main()
{
struct idk
{
char ch;
int i;
}abc;
printf("size of structure is: %d",sizeof(abc));
getch();
}
O/P is 3
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are c++ stream classes?
Write a C++ Program to check whether a number is prime number or not?
Explain method of creating object in C++ ?
What is isdigit c++?
Why do we use double in c++?
What does ctime() do?
What is the difference between object-oriented programming and procedural programming?
In c++, what is the difference between method overloading and method overriding?
How do I tokenize a string in c++?
How to demonstrate the use of a variable?
What is prototype for that c string function?
What are static type checking?
What is the difference between the indirection operator and the address of oper-ator?
What do the header files usually contains?
Can I uninstall microsoft c++ redistributable?