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 |
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).
#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); }
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
what is difference between c and c++
what is the output of below pgm? void main() { int i=0; if(i) printf("pass"); else printf("fail"); }
how can you print&scan anything using just one character? :) HINT: printf,scanf similer
What are local static variables? How can you use them?
compare array with pointer?
What is struct node in c?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
What is the output of the program given below #include<stdio.h> main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
21 Answers ADITI, Student, TCS,
why array index always starts from zero??