Java
T
point
Home
Python
Java
JavaScript
HTML
SQL
PHP
C#
C++
DS
Aptitude
Reasoning
Selenium
DBMS
C
Android
Interview Q
Content Menu ▼
1
2
3
4
5
6
7
8
9
10
Question 1
:
There is a error in the below program. Which statement will you add to remove it?
#include<stdio.h>
int main()
{
int a;
a = f(10, 3.14);
printf("%d ", a);
return 0;
}
float f(int aa, float bb)
{
return ((float)aa + bb);
}
1.
Add prototype: float f(aa, bb)
2.
Add prototype: float f(int, float)
3.
Add prototype: float f(float, int)
4.
Add prototype: float f(bb, aa)