What is function prototype in c with example?



What is function prototype in c with example?..

Answer / Sachin Dev

A function prototype in C is a declaration of a function that includes the return type, the function name, and the number and types of its arguments. An example of a function prototype is: `int add(int a, int b);`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

64/square(4)

1 Answers  


what is c?

4 Answers   IBM, TCS,


Do pointers store the address of value or the actual value of a variable?

1 Answers   Fidelity,


wap to print "hello world" without using the main function.

22 Answers   TCS, Wipro,


program for reversing a selected line word by word when multiple lines are given without using strrev

1 Answers   IBM,


Sir i want e-notes of C languge of BAlaguruswami book i.e scanned or pdf file of balaguruswamy book on c language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com

8 Answers  


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

1 Answers  


Is there something we can do in C but not in C++? Declare variable names that are keywords in C++ but not C.

2 Answers   Infosys,


How do I get an accurate error status return from system on ms-dos?

1 Answers  


Explain what is the difference between a string and an array?

1 Answers  


What is the difference between void main() and void main (void) give example programme?

0 Answers  


int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]

6 Answers   Hughes,


Categories