Consider the program given below.
#include<iostream>
void validate(int i){
try
if(i <0)
throw "negetive";
else if(i > 0)
throw i * 1.00;
else
throw 0;
catch(int ){ std::cout << "int "; } //LINE-1
catch(float ){ st
cout << "float
catch(const char* ){ std::cout << "
5} //LINE-2
har *"; } //LINE-3
3
int main({
yl
validate(0);
validate(1);
validate(-1);
3
catch(...) { std::cout << "ALL"; } //LINE-4
3
What will be the output?
a) int float char *
b) int float
©) int ALL
d) int ALL char *