Programlama | Programlama Dilleri | C Programlama Dili |C++

Hata
  • XML Parsing Error at 1:82. Error 9: Invalid character
Anasayfa Programlama C / C++ Karakter, Dizi, Tamsay? De?i?kenlerini Kullanma
´╗┐

Karakter, Dizi, Tamsay? De?i?kenlerini Kullanma

AăIKLAMA

Bu program?m?zda karakter bilgisinin, tamsay? de?i?kenlerinin ve dizi tipi de?i?kenlerin nas?l g÷sterildi?i (ekran š?kt?s? olarak) belirtilmi?tir. Diziye atama i?leminin de sabit olan stringlerde (de?i?ken veya d??ar?dan al?nan de?il) direk olarak yap?d???n? hat?rlatmakta fayda vard?r.

Program Kodu:

  1. //---------------------------------------------------------------------------
  2.  
  3. #include <vcl.h>
  4. #pragma hdrstop
  5. #include <stdio.h>
  6. #include <conio.h>
  7. //---------------------------------------------------------------------------
  8.  
  9. #pragma argsused
  10.  
  11. void main(int argc, char* argv[])
  12. {
  13. char d=101;
  14. printf("karakter:%c\n",d);
  15. int x=9;
  16. printf("Sayi: %d\n",x);
  17. char c[10]="Erzurum";
  18. printf("Dizi: %s\n",c);
  19. printf("Karakter:%c , Sayi:%d , Dizi:%s",d,x,c);
  20. getche();
  21.  
  22.  
  23. }
  24. //---------------------------------------------------------------------------
  25.  
Yorumlar (0)
Sadece kay─▒tl─▒ kullan─▒c─▒lar yorum yazabilir!
Son G├╝ncelleme ( Pazartesi, 08 A─čustos 2011 16:52 )  
404 Not Found

404

Not Found

The resource requested could not be found on this server!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.