write a program for size of a data type without using
sizeof() operator?
Answer Posted / subham singh
1 #include<iostream>
2 using namespace std;
3 main()
4 {
5 int i;
6 int* p = &i;
7 int* q= p;
8 p++;
9 cout<<(char*)p-(char*)q<<endl;
10 }
11
~
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain what is dynamic data structure?
explain what are pointers?
Why doesnt the call scanf work?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Is there a way to compare two structure variables?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
What is #include conio h?
If null and 0 are equivalent as null pointer constants, which should I use?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What does *p++ do? What does it point to?
What is the difference between āgā and āgā in C?
How can I swap two values without using a temporary?
How is pointer initialized in c?
Why is sizeof () an operator and not a function?