Answer:
The function declaration to this question as follows:
Function declaration:
//declaring method printFeetInchShort, that accepts two integer parameters
void printFeetInchShort(int numFeet,int numInches) //method
{//method body
printf("The given height is: "); // message printing
printf("%d\'%d\" ", numFeet,numInches); //value printing
}
Explanation:
In the above method (function) declaration a method "printFeetInchShort" is declared, that accepts two integer variable as its parameters.
- This method uses a return type void, which means it will not return any value.
- The parameter "numFeet and numInches" accepts an integer value in the main method and inside the method, it will print its value by a single and double quote.
Answer: a)To have the computer close the current form when the user clicks the Exit button, the Me.Close() statement should be entered in a button’s Click event procedure
Explanation: Me.close() statement is used for the assuring that execution of the program has stopped along with stopped computer event.This statement is puts the current form into the form.closing.
Other statements are incorrect because title bar can be vanished from application,size of the form can be change while execution of application and both minimize and maximize button are in the form of set and can be removed togather only .Thus, the correct option is option(a)
Answer:
You will use the keyword extern to declare a variable at any place. Though you can declare a variable multiple times in your C program, it can be defined only once in a file, a function, or a block of code. Explanation: