556 views
0 votes
0 votes
In a 16-bit machine
Size of  Int Size of pointer are same ?

What I knew is 8bit = 1B

Char will take -> 1 B
Int -> 2B

if integer pointer  size is p then size of flot / double / int pointer is p itself  , right ?

1 Answer

0 votes
0 votes

INT , FLOAT , DOUBLE all are  different data types = > size of the pointers will also be differet depending on the type  you have declared.

Related questions

0 votes
0 votes
1 answer
1
10 votes
10 votes
1 answer
2
Arjun asked Nov 17, 2014
3,321 views
main() { int i =300; char *ptr=&i; *++ptr=2; printf("%d",i); }
0 votes
0 votes
1 answer
3
Nitesh Choudhary asked Apr 16, 2017
492 views
There are many questions related to size of pointer and it's also depend on machine so anyone tell me source of reading pointer. (for Gate)
2 votes
2 votes
3 answers
4
Laahithyaa VS asked Sep 9, 2023
934 views
. What will be the value returned by the following function, when it is called with 11?recur (int num){if ((num / 2)! = 0 ) return (recur (num/2) *10+num%2);else return 1...