Write a simple program to find the size of different basic
data types in C.
Answer Posted / jugad
#include
#include
int main()
{
printf(“%d %d %d %d”,sizeof(int),sizeof(unsigned
int),sizeof(float),sizeof(char));
getch();
return 0;
}
courtesy:http://answerwale.co.cc/?p=23
Is This Answer Correct ? | 21 Yes | 7 No |
Post New Answer View All Answers
Is c procedural or object oriented?
What are type modifiers in c?
Write a code to generate a series where the next element is the sum of last k terms.
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is variable in c example?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
Subtract Two Number Without Using Subtraction Operator
Why c is known as a mother language?
What are local static variables? How can you use them?
pierrot's divisor program using c or c++ code
What is the difference between Printf(..) and sprint(...) ?
What is output redirection?
Explain how can I make sure that my program is the only one accessing a file?
What is the general form of function in c?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above