estc.dsr-company.com

Download Report

Transcript estc.dsr-company.com

С knowledge requirements
• Statements:
• Type casts
• Comma operator
• if
• while & do-while
• for
• goto
• switch
• break, continue
• Functions
• Arrays
• Compound types
• Pointer
• Basic I/O functions: scanf, printf
• Functions with a varying number of arguments
• String functions: strcpy, strcat, strdup, strchr
• Memory functions: malloc, free, memset, memcpy, memmove
• File functions: fopen, fclose, fprintf, fwrite, fscanf, fread, feof
Example task
There is a file with decimal numbers divided by spaces and newlines. Find
minimal count of numbers which are needed to be removed to make this
sequence monotone.