









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










z
z
if (x > 43) {
printf(“X is bigger than 43\n”); } if (!x) {
printf
} if (x == y) {
x = 42; } else {
x = y; }
if (x > 43) {
printf(“X is bigger than 43\n”); } else if (x > 10) {
printf(“X greater than 10\n”); } else {
printf(“X is 10 or less\n”); }
z
z
z
z
z
switch (expression) {
case constant-expression:
statement;break; ….default:
statement;break;
} z
z
z
z
int find(int data[10], int value){
for (i=0; i < 10; i++) {
if (data[i] == value) {
return i; } }
}
z
z
z
z