







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These are the Lecture Slides of C Programming which includes Sscanf() Function, Snprintf() Function, Converts String, Floating Point Value, Searches for First Occurrence, Number of Characters, Token Separators, Value of Zero Means etc. Key important ponts are: C Program Workshop, Workshop Features, Bins for Parts and Supplies, Operating Procedures, Transformed Data, Current Data, Program Entrances and Exits, Constants and Variables, Data Types
Typology: Slides
1 / 13
This page cannot be seen from the preview
Don't miss anything!








Door for expected results to go out
Door for requests to go in
Door for unexpected results to go out
Bins for parts and supplies
Various tools
Instructions and operating procedures
Communication with other shops
OUT (stdout)
IN (stdin)
ERROR (stderr)
Constants and variables
Operations and functions
main
Instructions and operating procedures
File and Device Input/Output
int main(void) { int theCheckNbr; char theAccount; char theTaxCode; float theAmount; float theBalance; theBalance = 2391.52; printf("Ck Nbr Acct Tax Amount Balance\n"); printf("------ ---- --- ------ -------\n"); theCheckNbr = 234; theAccount = ‘B'; theTaxCode = ‘Z'; theAmount = 34.56; theBalance = theBalance - theAmount; printf("%6d %2c %2c %6.2f %7.2f\n", theCheckNbr, theAccount, theTaxCode, theAmount, theBalance); return 0; } // End main
Ck Nbr Amount Acct Balance Tax
234 34.56 B 2356.96 Z 235 192.73 T 2164.23 W 236 75.00 G 2089.23 X