Showing posts with label C-PROGRAMMING. Show all posts
Showing posts with label C-PROGRAMMING. Show all posts

Tuesday, February 8, 2011

ADVANCED LAB C-PROGRAMMING

ADVANCED LAB C-PROGRAMMING FOR MCA,BCA /* 1. CHECK MAXIMUM VALUE THAT CAN BE REPRESENTED IN ALL THE STORAGE TYPES. [ int(short,long,signed,unsigned), char, double, float]*/ #include#include#include void main(){ int size; clrscr(); size=sizeof(short int); printf("max value in short int is ------>%lf\n",pow(2,size*8-1)-1); size=sizeof(long int); printf("max value in long int is ------->%lf\n",pow(2,size*8-1)-1); size=sizeof(int); printf("max...