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

How pointers are declared?

560


What is pointer in c?

740


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2235


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

666


How can you call a function, given its name as a string?

712






Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

667


Explain what is the difference between text files and binary files?

617


What are the two types of structure?

575


What is infinite loop?

629


What is the difference between printf and scanf in c?

748


Do pointers store the address of value or the actual value of a variable?

610


When is a “switch” statement preferable over an “if” statement?

648


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

981


How was c created?

589


What is && in c programming?

678