CSIT121 Study Questions & 100%
Solutions (Verified Answers)
is when the ++ is placed in front of its operand. For this, the value of the expression is the variable's
value after the increment. - ✔✔Prefix increment
is when the -- is placed in front of its operand. For this, the value of the expression is the variable's value
after the decrement. - ✔✔Prefix decrement
is when the ++ is placed immediately after the operand. Postfix increment is when the expression's
value is the value of the variable before it is incremented. - ✔✔Postfix increment
is when the -- is placed immediately after the operand. Postfix decrement is when the expression's value
is the value of the variable before it is decremented. - ✔✔Postfix decrement
Returns the absolute value of x. - ✔✔double fabs(double x)
, Rounds up or returns the smallest whole number that is not less than x. - ✔✔double ceil(double x)
Rounds down or returns the largest whole number that is not greater than x. - ✔✔double
floor(double x)
Returns the non-negative square of x. - ✔✔double sqrt(double x)
Returns x raise to the power of y. - ✔✔double pow(double x, double y)
Returns the remainder of x divided by y. - ✔✔double fmod(double x, double y)
function reads a single character from a standard input. - ✔✔getchar
function allows the user to input a character and wait for the enter key. Inputted character will not be
echoed but could be stored if location is specified. It is a nonstandard function and is present in
conio.h header file. - ✔✔getch
function allows the user to input a character and there is no need for the enter key. Inputted
character will be echoed but could be stored if location is specified. - ✔✔getche
function allows the user to input a sequence of characters or string. - ✔✔gets
function writes the string to the standard output device such as the monitor and positions the cursor
to the next line. - ✔✔puts
function writes a single character to the screen - ✔✔putchar
are C implementations that contain collections of useful functions and symbols that may be accessed by
a program. Each library has a standard header file whose name ends with .h. A C system may expand
the number of operations available by supplying additional libraries that are called user-defined -
✔✔Libraries
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller KenAli. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.49. You're not tied to anything after your purchase.