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
How to declare a function pointer?
What is a namespace in c++?
Why is c++ a mid-level programming language?
Is C++ case sensitive a) False b) Depends on implementation c) True
What are destructors?
Why is c++ still popular?
What is abstract keyword in c++?
Define a pdb file.
Declare a class vehicle and make it an abstract data type.
What do you mean by inheritance in c++? Explain its types.
What is the best free c++ compiler for windows?
What is oops in c++?
What is called array?
What is auto type c++?
Is there any function that can skip certain number of characters present in the input stream?