PFC-quiz4 - thi tr c nghi m PFC- Quiz4 - slot 15 (10') Ghi...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: thi tr c nghi m PFC- Quiz4 - slot 15 (10') Ghi ch: Nh ng cu khng ghi i m c hi u l 1 i m. 4.01. Which is not a proper prototype? int funct(char x, char y); double funct(char x) ng void funct(); char x(); 4.02. (0.5 i m) What is the return type of the function foo (with prototype) below: int foo(char x, float v, double t); char int ng float double 4.03. Which of the following is a valid function call (assuming the function exists)? funct; funct x, y; funct(); ng int funct(); 4.04. Which of the following is a complete function? int funct(); int funct(int x) {return x=x+1;} ng void funct(int) {printf( "Hello" ); void funct(x) {printf( "Hello" ); } 4.05. What is the output when the sample code below is executed? int calculate(int c) { c = c + 15; if(c>=45) return(10); else return(10*10); } int main() { int a=20,b; b=calculate(a); printf("%d %d", a, b); return(0); } 45 100 45 10 20 10 20 100 ng compiler error 4.06. 4....
View Full Document

Page1 / 4

PFC-quiz4 - thi tr c nghi m PFC- Quiz4 - slot 15 (10') Ghi...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online