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 are multibyte characters?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
what is bit rate & baud rate? plz give wave forms
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Explain what is the concatenation operator?
How we can insert comments in a c program?
Tell us two differences between new () and malloc ()?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What is the deal on sprintf_s return value?
What does *p++ do? What does it point to?
What is int main () in c?
Why do we need arrays in c?
write a program to print data of 5 five students with structures?
What is function and its example?
What does c mean?