How much is size of struct having 1 char & 1 integer?

Answer Posted / uttam kumhar

1 char always hold 1 byte in c in any 32-bit or 64-bit system
but in case of int it vary on the system.if there is 32-bit system the int hold 4-byte memory ...and if 64-bit system int hold 2-byte memory....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you declare A pointer to function which receives an int pointer and returns a float pointer

691


Write bites in Turbo c++ Header ("Include") Files.

692


What do nonglobal variables default to a) auto b) register c) static

657


Is java easier than c++?

599


What are c++ stream classes?

569






Why the usage of pointers in C++ is not recommended ?

904


What is #include iostream h in c++?

632


Why is c++ awesome?

588


Write a program in C++ for Fibonacci series

672


What is the use of data hiding?

607


What happens when the extern "c" char func (char*,waste) executes?

646


What is the full form of dos?

573


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3365


What is a responder chain?

580


What are static variables?

625