write a program for size of a data type without using
sizeof() operator?
Answer Posted / neel patwa
//Nice way to find size of any data type...
#include<iostream.h>
void main(){
int *p=0;
p++;
cout<<"\nSize of int="<<(int)p;
}
Note:U can replace int by other datatpe,
to find size of any data type..
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between call by value and call by reference in c language?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Lists the benefits of c programming language?
How can I implement a delay, or time a users response, with sub-second resolution?
Write a program to generate the Fibinocci Series
What is extern storage class in c?
Combinations of fibanocci prime series
Under what circumstances does a name clash occur?
Why main function is special give two reasons?
What is pass by value in c?
How is pointer initialized in c?
What is #define size in c?
Where are some collections of useful code fragments and examples?
Explain what header files do I need in order to define the standard library functions I use?