• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

C Programming language

Document preview thumbnail
Preview 1 out of 4 pages

C program - consists of functions and variables function - contains statements that specify the computing operations to be done. a function is called by naming it, followed by a parenthesized list of arguments. variable - stores values used during the computation main function - the function where every program begins executing. it will usually call other functions to help perform its job, some that you wrote, and others from libraries that are provided for you. #include stdio.h - tells the compiler to include information about the standard input/output library (ch. 7/appendix b) argument - a list of values provided by the calling function to the function it calls; it's a method of communicating data between functions. the parenthesis ( ) after the function name surround the argument list. in main(), main is defined by a function that expects no arguments, indicated by the empty list (). main() - define a function named main that receives no argument values statement - a computer operation specified by a function to be done. enclosed in braces { }. printf - a library function that prints output. requires the n newline character, even separately like printf("n");. the first argument is the string of characters to be printed, with each % indicating where one of the other arguments is to be substituted, and in what form it is to be printed. character string or string constant - a sequence of characters in double quotes n - the newline character. only represents a single character


Document information

Uploaded on
December 25, 2023
Number of pages
4
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$4.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
144
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.