struct ptr
{
int a;
char b;
int *p;
}abc;
what is d sizeof structure without using "sizeof" operator??

Answer Posted / avinash dubey

the correct answer in gcc compiler is 12..
concept of structure padding is involved here..

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain that why C is procedural?

648


how to make a scientific calculater ?

1552


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

2854


What is the difference between the local variable and global variable in c?

524


Explain what does the function toupper() do?

627






What is wrong with this declaration?

606


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

573


what is the function of pragma directive in c?

614


What is exit() function?

556


What are the rules for identifiers in c?

579


What is the use of extern in c?

638


What is bubble sort technique in c?

580


what is the basis for selection of arrays or pointers as data structure in a program

3780


Is main a keyword in c?

619


Explain about the constants which help in debugging?

841