how to find the sizof of any datatype using bit manipulations
Answers were Sorted based on User's Feedback
Answer / jvhariharan
void main()
{
int a,b;
a=sizeof(int);
b=sizeof(char);
pf("int:%d char:%d",a,b);
}
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nazia wasim
the size of any datatype or a variable can b
calculated using sizeof operator .it uses one
argument as the datatype or variable name
and returns the size in bytes.syntax:-sizeof
(datatype).
Is This Answer Correct ? | 0 Yes | 0 No |
Is c weakly typed?
Write a C program where input is: "My name is xyz". output is: "xyz is name My".
difference between malloc and calloc
what is c language?
how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?
c program to compute AREA under integral
What is use of null pointer in c?
Describe explain how arrays can be passed to a user defined function
What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access?
Is this program statement valid? INT = 10.50;
what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,z; z=x-- -y; printf("\n%d %d %d",x,y,z); }
what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
7 Answers Cadence, JNTU, Zen Technologies,