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 |
How to write a code for reverse of string without using string functions?
Find the O/p of the following struct node { char *name; int num; }; int main() { struct node s1={"Harry",1331}; struct node s2=s1; if(s1==s2) printf("Same"); else printf("Diff"); }
#include<stdio.h> int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20
Explain what is a stream?
What are the two types of functions in c?
Explain #pragma statements.
Explain the red-black trees?
What is optimization in c?
write a program of bubble sort using pointer?
for(;;) printf("C language") What is out put of above??
2 Answers Practical Viva Questions,
what is the importance of spanning tree?
write a program to display the frequency of each element in a given array in c language