how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / test
#include<stdio.h>
main()
{
int kh[2]={10,20};
int * ptr_kh=kh;
printf("%d",((char* )(ptr_kh+1)-(char*)ptr_kh));
}
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Explain the use of 'auto' keyword in c programming?
how to find anagram without using string functions using only loops in c programming
What functions are used in dynamic memory allocation in c?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is the purpose of the statement: strcat (S2, S1)?
What are the advantages of using Unions?
What are header files why are they important?
Why we use break in c?
What is the default value of local and global variables in c?
What is meant by operator precedence?
What is floating point constants?
Why do we use int main?
is it possible to create your own header files?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
Why doesnt long int work?