write a program for size of a data type without using
sizeof() operator?
Answer Posted / fanish
#include <stdio.h>
int main(){
printf("%d\n",((int*)0 + 1));
}
We can replace int with any other type
(Built-in/user-defined ) to get the size.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
What is main () in c?
write a progrmm in c language take user interface generate table using for loop?
What is keyword in c?
What is the full form of getch?
Write a code of a general series where the next element is the sum of last k terms.
Explain what is the advantage of a random access file?
What is bss in c?
what is the diffrenet bettwen HTTP and internet protocol
Subtract Two Number Without Using Subtraction Operator
in linking some of os executables are linking name some of them
What is a constant and types of constants in c?
Explain what is a 'locale'?
What is data type long in c?
What is the significance of c program algorithms?