how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
int ptr,a[2];
char ptr1,b[2];
float ptr2,c[2];
ptr=(a+1)-a;
ptr1=(b+1)-b;
ptr2=(c+1)-c;
printf("int : %d\n",ptr);
printf("char : %d\n",ptr1);
printf('float : %d\n",ptr2);
getch();
}
than ku
Is This Answer Correct ? | 0 Yes | 8 No |
Post New Answer View All Answers
Write a program to print fibonacci series using recursion?
Write a C program to count the number of email on text
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
Is there sort function in c?
What does void main return?
Who invented bcpl language?
Can main () be called recursively?
What are c header files?
What's a good way to check for "close enough" floating-point equality?
What header files do I need in order to define the standard library functions I use?
What is function prototype in c with example?
Is there a way to switch on strings?
What is 2c dna?
write a program to find the given number is prime or not
find the sum of two matrices and WAP for it.