Pergunta de entrevista da empresa CONTENTSERV

Q: Find the sum of the largest and second largest number in a array

Respostas da entrevista

Sigiloso

25 de mai. de 2017

I solved it using a if else statement​

Sigiloso

11 de jul. de 2017

int main() { int a[20],i,f,s,t; cout>a[i]; f=a[0]; s=a[1]; if(s>f) { t=s; s=f; f=t; } for(i=0;if) { s=f; f=a[i]; } else if(a[i]>s) s=a[i]; cout<<"first big no"<