In the program below, what is the total number of syntax errors
/*
Program Name: simple.c
Program Author: Mitchell
Program Description: A simple program that adds two numbers and prints
the sum to the screen
/*
Void Main( void )
{
int num1 = 9;
int num2 = 8;
int numberSum = 0;
numberSum = num1 + num2;
printf( "The sum of the number is ", numberSum );
return;
} // end main
a. 3
b. 4
c. 5
d. 6
Computer science help?
3
1 closing comment /*
2 Void instead of void
3. printf misses format
Reply:How many times are you going to post this?
I guess until you run out of unique yahoo ids?
flash cards
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment