kaldin

  • Login

C Programming


1) What is the notation for following functions?

1.  int f(int a, float b)
    {
        /* Some code */
    }
  • A)

  • B)

  • C)

  • D)

Next
Show Answer:
Show Answer


More Question
Point out the error in the following program. #includestdio.h#includestdarg.hvoid varfun(int n, ...);int main() varfun(3, 7, -11.2, 0.66); return 0;void varfun(int n, ...) float ptr; int num; va_start(ptr, n); num = va_arg(ptr, int); printf(d, num);
Which of the following errors would be reported by the compiler on compiling the program given below #includestdio.hint main() int a = 5; switch(a) case 1: printf(First); case 2: printf(Second); case 3 + 2: printf(Third); case 5: printf(Final); break; return 0;
What will be the output of the program #includestdio.hint main() int i=2; printf(d, d\n, ++i, ++i); return 0;
Which of the following statement is correct about the program #includestdio.hint main() FILE fp; char ch; int i=1; fp = fopen(myfile.c, r); while((ch=getc(fp))!=EOF) if(ch == '\n') i++; fclose(fp); return 0;
A preprocessor directive is a message from programmer to the preprocessor.