C ‘de String Array ‘i Nasıl Yapılır ?
Eğer içeriği değişmeyecek string ‘lerden oluşuyor ise const char *a[2]; a[0] = “ozgur”; a[1] = “ali”; İçeriği değişecek stringlerden oluşacak dizi için char a[2][14]; strcpy(a[0], “ozgur”); strcpy(a[1], “ali”);
Özgür Özkök
C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, while a static type system prevents unintended operations.
Eğer içeriği değişmeyecek string ‘lerden oluşuyor ise const char *a[2]; a[0] = “ozgur”; a[1] = “ali”; İçeriği değişecek stringlerden oluşacak dizi için char a[2][14]; strcpy(a[0], “ozgur”); strcpy(a[1], “ali”);
In the late 1970s, Stroustrup applied the idea of “classes” to the C programming language to create a new language that allows for high-level abstraction—but is efficient and close to the hardware. BJARNE STROUSTRUP Bjarne Stroustrup is a computer programmer most famous for having designed and implemented the computer programming […]