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 zero based addressing.
What is the value of c?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
What is the purpose of clrscr () printf () and getch ()?
What are the 4 types of organizational structures?
What is extern storage class in c?
Is c easy to learn?
how can use subset in c program and give more example
What is the use of typedef in structure in c?
What are predefined functions in c?
How is = symbol different from == symbol in c programming?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
What does do in c?
what do you mean by enumeration constant?
What is meant by high-order and low-order bytes?