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
What is the difference between text and binary i/o?
Tell me what is the purpose of 'register' keyword in c language?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What are structural members?
Write a program to check palindrome number in c programming?
What is wrong with this program statement?
What is the best organizational structure?
What is meant by 'bit masking'?
What is type qualifiers?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What are the two types of structure?
What are the loops in c?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
Why do we write return 0 in c?
#include