Hardware and Software Design Question:

Download Job Interview Questions and Answers PDF

Explain Memory taken for char *, int * etc.?

Hardware and Software Design Interview Question
Hardware and Software Design Interview Question

Answer:

Generally for integer memory is 2 bytes for character is 1 byte

char * and int * are pointers. they point to a memory location hence there size is the same, which is the size of the address space.

Download Hardware and Software Design Interview Questions And Answers PDF

Previous QuestionNext Question
Write a code to count the no. of 1s in a binary representation of a number?How does the browser know to go to a certain IP address when you enter a domain like globalguideline.com?