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
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
What is the difference between text and binary modes?
Why is C language being considered a middle level language?
How does normalization of huge pointer works?
Can we use any name in place of argv and argc as command line arguments?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
How many types of operator or there in c?
How can I do graphics in c?
Explain why can’t constant values be used to define an array’s initial size?
Why dont c comments nest?
How the c program is executed?
How a string is stored in c?
What is the difference between mpi and openmp?
Why is c so popular?
What are the different types of data structures in c?