CIS 2500 Lecture Notes - Lecture 18: Minimax, Operand, C String Handling

41 views4 pages

Document Summary

A zero reslts indicates false, so we have to negate it to get what we want. People mostly use to confirm, no need for greater than or less than most of the time. Use a definitons so that the code expresses what is happening a more antural style set up the definition: Now you can write a string in the natural style if (strcmp(s,==,volatile)) Why use two symbols when one will do. P = n * sizeof * q; Quickly now, thera are two multiplications or one? the answer is there is only one multiplication sizeof is an operator that takes as its operan the things pointed to by q, in other words *q. When sizeof operand is a type it has to be enclosed in parentheses but for a variable this is not required. Asterisk used for so many different things. What does this mean is it size of an int, multiplied by p.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents