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
What is the significance of scope resolution operator?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
Explain the difference between ++u and u++?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What is strcmp in c?
Write a program to print “hello world” without using semicolon?
What does typedef struct mean?
What do you mean by keywords in c?
How is a structure member accessed?
What is cohesion and coupling in c?
Can a pointer point to null?
Do you know pointer in c?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Why do we use namespace feature?
what is the syallabus of computer science students in group- 1?