September 1998
Intermediate to advanced
848 pages
20h 13m
English
What are the basic modules of a C program called?
What is a syntax error? Give an example of one in English and of one in C.
What is a semantic error? Give an example of one in English and of one in C.
Ichabod Bodie Marfoote has prepared the following program and brought it to you for approval. Please help him out.
include studio.h
int main{void} /* this prints the number of weeks in a year /*
(
int s
s : = 56;
print(There are s weeks in a year.);
return 0;
Assuming that each of the following examples is part of a complete program, what will each one print?
a. printf("Baa Baa Black Sheep."); printf("Have you any wool?\n"); b. printf("Begone!\nO creature of lard!"); c. printf("What?\nNo/nBonzo?\n"); d. int num; num = 2; printf("%d ...Read now
Unlock full access