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


Please Help Members By Posting Answers For Below Questions

Is c procedural or object oriented?

580


What are type modifiers in c?

623


Write a code to generate a series where the next element is the sum of last k terms.

734


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

624


What is variable in c example?

594






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.

4990


Subtract Two Number Without Using Subtraction Operator

357


Why c is known as a mother language?

646


What are local static variables? How can you use them?

647


pierrot's divisor program using c or c++ code

1732


What is the difference between Printf(..) and sprint(...) ?

790


What is output redirection?

693


Explain how can I make sure that my program is the only one accessing a file?

627


What is the general form of function in c?

610


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

615