Komentar Pada Bahasa Pemrograman C

Komentar Pada Bahasa Pemrograman C. Halo gan! Kali ini ane akan share mengenai Komentar Pada Bahasa Pemrograman C. Silahkan disimak.

Komentar atau comment adalah naskah program yang tidak akan diproses oleh compiler. Pada saat proses kompilasi berlangsung, teks program yang termasuk ke dalam komentar akan diabaikan oleh compiler. Kehadiran komentar di dalam program sangat dibutuhkan terutama jika program yang dibuat sudah masuk ke skala besar dan kompleks. Setidaknya ada 3 alasan menagapa komentar perlu ditulis : 

1. Dokumentasi 
2. Debugging 
3. Maintenance  

Bahasa C menyediakan dua cara menulis komentar :  
  1. Karakter “//” digunakan untuk mengawali penulisan komentar dalam satu baris. Karakter yang ditulis sampai akhir baris akan diperlakukan sebagai komentar. Cara ini hanya bisa diterapkan pada komentar satu baris. Jika cara ini akan diterapkan pada komentar beberapa baris, maka pada setiap baris komentar komentar karakter “//” harus ditulis di awal komentar.  
  2. Karakter “/*” digunakan untuk mengawali penulisan komentar satu baris atau lebih, sampai dijumpai karakter “*/”. Cara ini memungkinkan kita menulis komentar lebih dari satu baris tanpa harus menulis tanda komentar berulang-ulang. Cukup awali komentar dengan menulis “/*” lalu akhiri komentar dengan menulis “*/”


Demikian mengenai Komentar Pada Bahasa Pemrograman C. Semoga dapat bermanfaat

sumber: modul kuliah

Fungsi Pada Bahasa Pemrograman C

Fungsi Pada Bahasa Pemrograman C. Haloo gan! Kali ini ane akan share sedikit mengenai Fungsi Pada Bahasa Pemrograman C. So langung saja disimak!

Fungsi Program C pada hakekatnya tersusun atas sejumlah blok fungsi. Sebuah program minimal mengandung sebuah fungsi. Setiap fungsi terdiri dari satu atau beberapa pernyataan yang secara keseluruhan dimaksudkan untuk melaksanakan tugas khusus. Secara umum, fungsi empunyai bentuk sebagai berikut :
nama-fungsi (daftar parameter)deklarasi parameter; {    bagian isi fungsi 
Fungsi main() 
Fungsi main( ) harus ada pada program, sebab fungsi inilah yang menjadi titik awal dan akhir eksekusi program. Tanda { diawal fungsi menyatakan awal tubuh fungsi dan juga sebagai awal program dijalankan, sedangkan tanda } di akhir fungsi merupakan akhir  bagian isi fungsi dan sekaligus adalah akhir dari eksekusi program.  
int main() {    Isi fungsi main 

Fungsi printf() 
Fungsi printf( ) merupakan fungsi yang umum dipakai utuk menampilkan suatu keluaran pada layar peraga. Dalam bentuk umum, format printf( ) adalah sebagai berikut : 
printf(kontrol string, daftar pernyataan); 

Demikian mengenai fungsi pada bahasa pemrograman C. Semoga dapat bermanfaat

sumber: modul kuliah

Tahapan Penulisan Program Bahasa C

Tahapan Penulisan Program Bahasa C. Haloo! Kali ini saya akan share tentang beberapa tahapan penulisan Bahasa C. Bagi yang tertarik, silahkan bisa disimak!

Tahapan Penulisan Program 
Pemrosesan program C umumnya melalui lima tahapan, yaitu : 
  1. Tahap menulis kode sumber adalah proses penulisan program dengan menggunakan editor C dan kemudian disimpan ke dalam penyimpanan sekunder. File program C diberi nama dengan menambahkan ekstensi .c. Adapun hal yang perlu diperhatikan dalam penulisan bahasa C adalah sifat case sensitive, dimana huruf besar dan kecil dibedakan. Setiap akhir dari sebuah instruksi harus diakhiri tanda semicolon (;). 
  2. Tahap berikutnya adalah melakukan kompilasi, dimana kompilator akan menerjemahkan program ke dalam kode bahasa mesin (object code = .obj). Di dalam sistem C, bagian program yang disebut preprocessor (dipanggil melalui preprocessor directives) akan diproses di awal sebelum tahap penerjemahan program dimulai. 
  3. Proses link dilakukan untuk mengkombinasikan kode obyek (obj) dengan pustaka C yang tersedia agar menghasilkan file program lengkap yang dapat dieksekusi oleh komputer, file yang dihasilkan mempunyai ekstensi .exe. 
  4. Tahap selanjutnya adalah memanggil file program hasil langkah tiga ke dalam memori untuk dapat dijalankan oleh komputer. 
  5. Tahap terakhir adalah menjalankan atau mengeksekusi program. 
Demikian beberapa tahapan dalam penulisan bahasa C. Semoga dapat bermanfaat!

sumber: modul kuliah

Pengertian atau Definisi Bahasa C

Pengertian atau Definisi Bahasa C. Selamat pagi! Pada post pertama saya di blog belajar pemrograman Bahasa C ini saya akan membahasa tentang pengertian Bahasa C itu sendiri. Langsung saja, silahkan bisa disimak.

Bahasa C sendiri merupakan bahasa kelas menengah yang fleksibel dan mempunyai portabilitas tinggi. C adalah bahasa pemrograman dengan kata kunci (keyword) sedikit (32 kata kunci) dan merupakan bahasa pemrograman yang bersifat modular. Bahasa C adalah salah satu dari banyak bahasa pemrograman desktop yang cukup populer dan mempunyai cukup banyak keunggulan. Ada banyak aplikasi-aplikasi yang dirancang dalam bahasa C, atau mungkin paling tidak struktur utama programnya ditulis dalam bahasa C.

Bahasa C mempunyai kemampuan lebih dibanding dengan bahasa pemrograman yang lain. Bahasa C merupakan bahasa pemrograman yang bersifat portabel, yaitu suatu program yang dibuat dengan bahasa C pada suatu komputer akan dapat dijalankan pada komputer lain dengan sedikit (atau tanpa) ada perubahan yang berarti.

Bahasa C merupakan bahasa yang biasa digunakan untuk keperluan pemrograman sistem, antara lain untuk membuat:

1. Assembler
2. Interpreter
3. Compiler
4. Sistem Operasi
5. Program bantu (utility)
6. Editor
7. Paket program aplikasi

Bahasa C dikembangken di Bell lab pada tahun 1972 ditulis pertama kali oleh Brian W. Kernighan dan Denies M. Ricthie merupakan bahasa turunan atau pengembangan dari bahasa B yang ditulis oleh Ken Thompson pada tahun 1970 yang diturunkan oleh bahasa sebelumnya, yaitu BCL. Bahasa C, pada awalnya dirancang sebagai bahasa pemrograman yang dioperasikan pada sistem operasi UNIX. Bahasa C merupakan bahasa pemrograman tingkat menengah yaitu diantara bahasa tinggat rendah dan tingkat tinggi yang biasa disebut dengan Bahasa Tingkat Menengah. Bahasa C mempunyai banyak kemampuan yang sering digunakan diantaranya kemampuan untuk membuat perangkat lunak, misalnya dBASE, Word Star dan lain-lain.

Demikian sekilas mengenai bahasa pemrograman C, semoga dapat bermanfaat dan membantu anda dalam memahami lebih banyak mengenai bahasa C. Pengertian atau Definisi Bahasa C


Privacy Policy

Privacy Policy for Pemrograman Bahasa C


If you require any more information or have any questions about our privacy policy, please feel free to contact us by email at http://zonakoding.blogspot.com/2013/11/contact-us.html.
At http://zonakoding.blogspot.com/ we consider the privacy of our visitors to be extremely important. This privacy policy document describes in detail the types of personal information is collected and recorded by http://zonakoding.blogspot.com/ and how we use it.
Log Files
Like many other Web sites, http://zonakoding.blogspot.com/ makes use of log files. These files merely logs visitors to the site - usually a standard procedure for hosting companies and a part of hosting services's analytics. The information inside the log files includes internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date/time stamp, referring/exit pages, and possibly the number of clicks. This information is used to analyze trends, administer the site, track user's movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.
Cookies and Web Beacons
http://zonakoding.blogspot.com/ uses cookies to store information about visitors' preferences, to record user-specific information on which pages the site visitor accesses or visits, and to personalize or customize our web page content based upon visitors' browser type or other information that the visitor sends via their browser.
DoubleClick DART Cookie
→ Google, as a third party vendor, uses cookies to serve ads on http://zonakoding.blogspot.com/.
→ Google's use of the DART cookie enables it to serve ads to our site's visitors based upon their visit to http://zonakoding.blogspot.com/ and other sites on the Internet.
→ Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - http://www.google.com/privacy_ads.html
Our Advertising Partners
Some of our advertising partners may use cookies and web beacons on our site. Our advertising partners include ....... 
  • Google
  • Commission Junction
  • Amazon
  • Widget Bucks
  • Adbrite
  • Clickbank
  • Linkshare
  • Yahoo! Publisher Network
  • Azoogle
  • Chitika
  • Kontera
  • TradeDoubler
  • Ebay
While each of these advertising partners has their own Privacy Policy for their site, an updated and hyperlinked resource is maintained here: Privacy Policies.
You may consult this listing to find the privacy policy for each of the advertising partners of http://zonakoding.blogspot.com/.
These third-party ad servers or ad networks use technology in their respective advertisements and links that appear on http://zonakoding.blogspot.com/ and which are sent directly to your browser. They automatically receive your IP address when this occurs. Other technologies (such as cookies, JavaScript, or Web Beacons) may also be used by our site's third-party ad networks to measure the effectiveness of their advertising campaigns and/or to personalize the advertising content that you see on the site.
http://zonakoding.blogspot.com/ has no access to or control over these cookies that are used by third-party advertisers.
Third Party Privacy Policies
You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. http://zonakoding.blogspot.com/'s privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites. You may find a comprehensive listing of these privacy policies and their links here: Privacy Policy Links.
If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers' respective websites. What Are Cookies?
Children's Information
We believe it is important to provide added protection for children online. We encourage parents and guardians to spend time online with their children to observe, participate in and/or monitor and guide their online activity. http://zonakoding.blogspot.com/ does not knowingly collect any personally identifiable information from children under the age of 13. If a parent or guardian believes that http://zonakoding.blogspot.com/ has in its database the personally-identifiable information of a child under the age of 13, please contact us immediately (using the contact in the first paragraph) and we will use our best efforts to promptly remove such information from our records.
Online Privacy Policy Only
This privacy policy applies only to our online activities and is valid for visitors to our website and regarding information shared and/or collected there. This policy does not apply to any information collected offline or via channels other than this website.
Consent
By using our website, you hereby consent to our privacy policy and agree to its terms.
Privacy Policy Online Approved Site
Update
This Privacy Policy was last updated on: Sunday, November 17th, 2013.
Should we update, amend or make any changes to our privacy policy, those changes will be posted here.

Sitemap


Partner Us

Disclaimer

Satria Web Site Agreement

The Pemrograman Bahasa C Web Site (the "Site") is an online information service provided by Satria ("Pemrograman Bahasa C "), subject to your compliance with the terms and conditions set forth below. PLEASE READ THIS DOCUMENT CAREFULLY BEFORE ACCESSING OR USING THE SITE. BY ACCESSING OR USING THE SITE, YOU AGREE TO BE BOUND BY THE TERMS AND CONDITIONS SET FORTH BELOW. IF YOU DO NOT WISH TO BE BOUND BY THESE TERMS AND CONDITIONS, YOU MAY NOT ACCESS OR USE THE SITE. Pemrograman Bahasa C MAY MODIFY THIS AGREEMENT AT ANY TIME, AND SUCH MODIFICATIONS SHALL BE EFFECTIVE IMMEDIATELY UPON POSTING OF THE MODIFIED AGREEMENT ON THE SITE. YOU AGREE TO REVIEW THE AGREEMENT PERIODICALLY TO BE AWARE OF SUCH MODIFICATIONS AND YOUR CONTINUED ACCESS OR USE OF THE SITE SHALL BE DEEMED YOUR CONCLUSIVE ACCEPTANCE OF THE MODIFIED AGREEMENT.
1. Copyright, Licenses and Idea Submissions. 
The entire contents of the Site are protected by international copyright and trademark laws. The owner of the copyrights and trademarks are Pemrograman Bahasa C, its affiliates or other third party licensors. YOU MAY NOT MODIFY, COPY, REPRODUCE, REPUBLISH, UPLOAD, POST, TRANSMIT, OR DISTRIBUTE, IN ANY MANNER, THE MATERIAL ON THE SITE, INCLUDING TEXT, GRAPHICS, CODE AND/OR SOFTWARE. You may print and download portions of material from the different areas of the Site solely for your own non-commercial use provided that you agree not to change or delete any copyright or proprietary notices from the materials. You agree to grant to Pemrograman Bahasa C a non-exclusive, royalty-free, worldwide, perpetual license, with the right to sub-license, to reproduce, distribute, transmit, create derivative works of, publicly display and publicly perform any materials and other information (including, without limitation, ideas contained therein for new or improved products and services) you submit to any public areas of the Site (such as bulletin boards, forums and newsgroups) or by e-mail to Pemrograman Bahasa C by all means and in any media now known or hereafter developed. You also grant to Pemrograman Bahasa C the right to use your name in connection with the submitted materials and other information as well as in connection with all advertising, marketing and promotional material related thereto. You agree that you shall have no recourse against Pemrograman Bahasa C for any alleged or actual infringement or misappropriation of any proprietary right in your communications to Pemrograman Bahasa C.
TrafficServer 1.01  TRADEMARKS.
Publications, products, content or services referenced herein or on the Site are the exclusive trademarks or servicemarks of Pemrograman Bahasa C. Other product and company names mentioned in the Site may be the trademarks of their respective owners.
2. Use of the Site.
You understand that, except for information, products or services clearly identified as being supplied by Pemrograman Bahasa C, Pemrograman Bahasa Cdoes not operate, control or endorse any information, products or services on the Internet in any way. Except for Pemrograman Bahasa C- identified information, products or services, all information, products and services offered through the Site or on the Internet generally are offered by third parties, that are not affiliated with Pemrograman Bahasa C a. You also understand that Pemrograman Bahasa C cannot and does not guarantee or warrant that files available for downloading through the Site will be free of infection or viruses, worms, Trojan horses or other code that manifest contaminating or destructive properties. You are responsible for implementing sufficient procedures and checkpoints to satisfy your particular requirements for accuracy of data input and output, and for maintaining a means external to the Site for the reconstruction of any lost data.YOU ASSUME TOTAL RESPONSIBILITY AND RISK FOR YOUR USE OF THE SITE AND THE INTERNET. Pemrograman Bahasa C PROVIDES THE SITE AND RELATED INFORMATION "AS IS" AND DOES NOT MAKE ANY EXPRESS OR IMPLIED WARRANTIES, REPRESENTATIONS OR ENDORSEMENTS WHATSOEVER (INCLUDING WITHOUT LIMITATION WARRANTIES OF TITLE OR NONINFRINGEMENT, OR THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE) WITH REGARD TO THE SERVICE, ANY MERCHANDISE INFORMATION OR SERVICE PROVIDED THROUGH THE SERVICE OR ON THE INTERNET GENERALLY, AND Pemrograman Bahasa C SHALL NOT BE LIABLE FOR ANY COST OR DAMAGE ARISING EITHER DIRECTLY OR INDIRECTLY FROM ANY SUCH TRANSACTION. IT IS SOLELY YOUR RESPONSIBILITY TO EVALUATE THE ACCURACY, COMPLETENESS AND USEFULNESS OF ALL OPINIONS, ADVICE, SERVICES, MERCHANDISE AND OTHER INFORMATION PROVIDED THROUGH THE SERVICE OR ON THE INTERNET GENERALLY. Pemrograman Bahasa C DOES NOT WARRANT THAT THE SERVICE WILL BE UNINTERRUPTED OR ERROR-FREE OR THAT DEFECTS IN THE SERVICE WILL BE CORRECTED.
YOU UNDERSTAND FURTHER THAT THE PURE NATURE OF THE INTERNET CONTAINS UNEDITED MATERIALS SOME OF WHICH ARE SEXUALLY EXPLICIT OR MAY BE OFFENSIVE TO YOU. YOUR ACCESS TO SUCH MATERIALS IS AT YOUR RISK. Pemrograman Bahasa C HAS NO CONTROL OVER AND ACCEPTS NO RESPONSIBILITY WHATSOEVER FOR SUCH MATERIALS.

LIMITATION OF LIABILITY

IN NO EVENT WILL Pemrograman Bahasa C BE LIABLE FOR (I) ANY INCIDENTAL, CONSEQUENTIAL, OR INDIRECT DAMAGES (INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, LOSS OF PROGRAMS OR INFORMATION, AND THE LIKE) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SERVICE, OR ANY INFORMATION, OR TRANSACTIONS PROVIDED ON THE SERVICE, OR DOWNLOADED FROM THE SERVICE, OR ANY DELAY OF SUCH INFORMATION OR SERVICE. EVEN IF Pemrograman Bahasa C OR ITS AUTHORIZED REPRESENTATIVES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR (II) ANY CLAIM ATTRIBUTABLE TO ERRORS, OMISSIONS, OR OTHER INACCURACIES IN THE SERVICE AND/OR MATERIALS OR INFORMATION DOWNLOADED THROUGH THE SERVICE. BECAUSE SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY TO YOU. IN SUCH STATES, Pemrograman Bahasa C LIABILITY IS LIMITED TO THE GREATEST EXTENT PERMITTED BY LAW.Pemrograman Bahasa C makes no representations whatsoever about any other web site which you may access through this one or which may link to this Site. When you access a non-Pemrograman Bahasa C web site, please understand that it is independent from Pemrograman Bahasa C, and that Pemrograman Bahasa C has no control over the content on that web site. In addition, a link to a Pemrograman Bahasa C web site does not mean that Pemrograman Bahasa C endorses or accepts any responsibility for the content, or the use, of such web site.
3. Indemnification. 
You agree to indemnify, defend and hold harmless Pemrograman Bahasa C, its officers, directors, employees, agents, licensors, suppliers and any third party information providers to the Service from and against all losses, expenses, damages and costs, including reasonable attorneys' fees, resulting from any violation of this Agreement (including negligent or wrongful conduct) by you or any other person accessing the Service.
4. Third Party Rights.
The provisions of paragraphs 2 (Use of the Service), and 3 (Indemnification) are for the benefit of Pemrograman Bahasa C and its officers, directors, employees, agents, licensors, suppliers, and any third party information providers to the Service. Each of these individuals or entities shall have the right to assert and enforce those provisions directly against you on its own behalf.
5.Term; Termination. 
This Agreement may be terminated by either party without notice at any time for any reason. The provisions of paragraphs 1 (Copyright, Licenses and Idea Submissions), 2 (Use of the Service), 3 (Indemnification), 4 (Third Party Rights) and 6 (Miscellaneous) shall survive any termination of this Agreement.
6.Miscellaneous. 
This Agreement shall all be governed and construed in accordance with the laws of Indonesia applicable to agreements made and to be performed in Indonesia. You agree that any legal action or proceeding between Pemrograman Bahasa C and you for any purpose concerning this Agreement or the parties' obligations hereunder shall be brought exclusively in a federal or state court of competent jurisdiction sitting in Indonesia . Any cause of action or claim you may have with respect to the Service must be commenced within one (1) year after the claim or cause of action arises or such claim or cause of action is barred. Pemrograman Bahasa C's failure to insist upon or enforce strict performance of any provision of this Agreement shall not be construed as a waiver of any provision or right. Neither the course of conduct between the parties nor trade practice shall act to modify any provision of this Agreement. Pemrograman Bahasa C may assign its rights and duties under this Agreement to any party at any time without notice to you.
Any rights not expressly granted herein are reserved.

COPYRIGHT NOTICE.© 1999-2013 PriorityDigital.com Prepared for: Pemrograman Bahasa C ,All rights reserved. 

Get your own free disclaimer on-line here.

Contact Us