What is the output of the following program?


Loading

Practice Variable Number of Arguments – What is the output of the following program?


void main()

{

float balance, loan;

balance = 1000.0;

loan= balance/10;



if ((balance>500) || (loan < 500))

printf ("Good account/n ");

if (balance < 500) || (loan < 500)

printf("caution !/n");

}

What is the value of “final” after the following program executed?

Loading

Practice Variable Number of Arguments – What is the value of “final” after the following program executed?


void main()

{

int sum, index;

index = 0; sum=0; for(;;) {

sum = sum + index;

++index;

if (sum >= 100) break;

}

final = sum/index;

}

What will be output of the following “c” code?


Loading

Practice Variable Number of Arguments – What will be output of the following “c” code?


#include

void main(){

float a=5.2;

if(a==5.2)

printf("Equal");

else if(a<5.2)

printf("Less than");

else

printf("Greater than");

}

What will be output of the following “c” code?
=>For input as 1

Loading

Practice Variable Number of Arguments – What will be output of the following “c” code?
=>For input as 1 2


#include
int main(){
register int a,b;
int c;
scanf("%d%d",&a,&b);
c=~a + ~b + ++a + b++;
printf(" %d",c);
return 0;
}

What will be output of the following “c” code?

Loading

Practice Variable Number of Arguments – What will be output of the following “c” code?


#include
auto int a=5;
int main(){
int x;
x=~a+a&a+a< printf("%d",x);
return 0;
}