Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- void esc_byt(char*end,int nl){
- }
- int main (){
- double db;
- float ft;
- int ui;
- short us;
- char uc;
- int nl;
- scanf("%f",&db);
- uc=us=ui=ft=db;
- //se não der certo troca pelo tipo
- esc_byt(&uc,sizeof(char));
- esc_byt((char*)&us,sizeof(short));
- esc_byt((char*)&ui,sizeof(int));
- esc_byt((char*)&ft,sizeof(float));
- esc_byt((char*)&db,sizeof(double));
- return 0;
- }
Add Comment
Please, Sign In to add comment