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
Can math operations be performed on a void pointer?
How are variables declared in c?
I have seen function declarations that look like this
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Is c still relevant?
What is modifier & how many types of modifiers available in c?
What is a far pointer in c?
Why void main is used in c?
Write a c program to demonstrate character and string constants?
What are pointers?
how do you execute a c program in unix.
Explain the difference between #include "..." And #include <...> In c?
What is type qualifiers?
What is preprocessor with example?
application attempts to perform an operation?