write a program for size of a data type without using
sizeof() operator?
Answer Posted / mazhar shaikh
datatype a,*p,*q;
p=&a;
q=p+1;
cout<<abs(int(p)-int(q))<<endl;
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
Explain the term printf() and scanf() used in c language?
What is an example of structure?
Where we use clrscr in c?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
What is operator precedence?
What is cohesion and coupling in c?
Explain data types & how many data types supported by c?
What is the size of structure pointer in c?
What is the use of c language in real life?
What is wrong with this declaration?
Tell me what are bitwise shift operators?
Is void a keyword in c?
What is omp_num_threads?
What are the different types of C instructions?
What is malloc calloc and realloc in c?