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 can you invoke another program from within a C program?
What is a rvalue?
Difference between MAC vs. IP Addressing
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }
main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
Write a simple program to find the size of different basic data types in C.
What are header files? What are their uses?
What are header files and explain what are its uses in c programming?
How do you declare a variable that will hold string values?
What are dangling pointers?