C (Programmiersprache)
D Programmiersproch C isch vom Dennis Ritchie i de früe 70er-Jahr in de Bell Labs für das damals neu entwickelte Betriebssystem Unix entworfe worde. Dä Ken Thompson hät do zsemma mid em Dennis Ritchie zerscht d Programmiersproch BCPL a sine Wünsche anpasst und sie i d Sprach B umgnännt (Nach de Bell Laboratories, vo er sie entwickelt hät). Später isch drus dän d Sprach C entstande. D grundlegendi Programm vo allne Unix-System und d Systemkerne vielä Betriebssystem sind in C programmiert.
Vill Sprachä, wie C++, Java, C#, Objective-C, PHP oder Perl orientiered sich a dä Syntax und anderä Eigenschaftä von C.
Übärblick
C isch uf fascht allne Computersystem verfüegbar. Sie isch e sogenannti prozedurali Programmiersprach. In C gschribeni Programm werded rächt schnell usgfüert und bruched wenig Systemressource.
D Verbreitig vo C isch immer no höch und vill i C gschribeni Programm mönd gwarted und witerentwickled werde.
Dank es paar Eigeschafte wie em relativ diräkte Speicherzuägriff eigned sich C guet für d Systemprogrammierig. Bi dä Awendigsentwicklig wird C aber immer meh dur anderi Sprache wie C++, Objective-C, Java und C# verdrängt, diä sind im Bezug uf Entwickligsgschwindigkeit, Wartbarkeit, Informationssicherheit und Entwurfsunterstützig besser.
D Sprach C isch mit em Ziel entwickelt worde, ä Sprachabstraktion zu Assembler z implementierä. Es söt e direkti Zueordnig zu wenigä Maschinäinstruktionä gä, um d Abhängigkeit vo än rä Laufzitumgäbig z minimierä. Dank dem Design isch es möglich C-Code uf ä rä hardwarnäche Ebeni z schribe, analog zuä Assemblerbefehl. D Portiärig vo emä C-Compiler uf noiä Prozessorplattformä isch im Gägäsatz zuä anderä Sprache weniger ufwändig, so dass sich das praktisch immer lohnt, vom Mikrocontroller bis zum Grossrächner. Dä GNU-C-Compiler (gcc) isch zum Bispil für vil verschiedeni Prozessorä und Betriebsystem verfüegbar. Es gid also für fascht jedi Plattform än C-Compiler, so chönd Quelltegscht mit chline Änderigä uf anderä Plattforme wieder verwänded wärde.
Wie Code in C usgseet
E munzigs Brogramm in C, wo Hallo Welt! uf e Bildschirm schribt, wo as änglisch Hello world! uf dr ganze Wält bekannt isch:
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
puts("Hallo Welt!");
return EXIT_SUCCESS;
} /* end main() */
| Dä Artikel basiert uff ere fräie Übersetzig vum Artikel „C_(Programmiersprache)“ vu de dütsche Wikipedia. E Liste vu de Autore un Versione isch do z finde. |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.