Dev C++
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Konverzija tipa u C jeziku

Go down

Konverzija tipa u C jeziku Empty Konverzija tipa u C jeziku

Post  Don Corleone Wed Apr 13, 2011 10:50 pm


#include<stdio.h>
#include<conio.h>
int main(){

double a=115055555555.7356; // broj iz tipa double pretvara se u sve ostale tipove
printf("float a=%f \n",(float)a);
printf("int a=%d \n",(int)(float)a);
printf("char a=%c \n",(int)(float)a);
printf("octal a=%o \n",(int)(float)a);
printf("unsign a=%u \n",(int)(float)a);
getch();
}
Don Corleone
Don Corleone
Admin

Posts : 148
Join date : 2009-10-28
Age : 31
Location : Sombor - Serbia

https://programing.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum