Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.60 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void)
  5. {
  6.     char chaine[20];
  7.     int i;
  8.  
  9.     gets(chaine);
  10.     while (chaine[i]!='\0') {
  11.         printf("%c",chaine[i]);
  12.         printf("%d",chaine[i]);
  13.         i++;
  14.     }
  15. }
  16.  
  17. ||=== Build: Release in exo_5 (compiler: GNU GCC Compiler) ===|
  18. G:\TP4\exo_5\main.c||In function 'main':|
  19. G:\TP4\exo_5\main.c|15|warning: control reaches end of non-void function [-Wreturn-type]|
  20. G:\TP4\exo_5\main.c|10|warning: 'i' is used uninitialized in this function [-Wuninitialized]|
  21. ||=== Build finished: 0 error(s), 2 warning(s) (0 minute(s), 0 second(s)) ===|
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement