C Programming
What is the output of the following program?#includeint c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);}

20
25
30
24
None of these

ANSWER DOWNLOAD EXAMIANS APP

C Programming
C preprocessor

Acts before compilation
All of these
Takes care of conditional compilation
Takes care of include files
Takes care of macros

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;printf("Enter your age:");scanf("%f", &age);AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("You have lived for %f seconds", AgeInSeconds);}

Enter your age: xyz You have lived for 0.00000 seconds
Enter your age: xyz You have lived for 0 seconds
Enter your age: xyz "after that program will stop"
Run time error

ANSWER DOWNLOAD EXAMIANS APP