C Program to Calculate Sum & Average of an Array

#include  <stdio.h> #define MAXSIZE 10 void main() {     int array[MAXSIZE];     int i, num, negative_sum = 0, positive_sum = 0;     float total = 0.0, average;       printf…

Read more »

C-Apptitude

Q1.    main(){ extern out; printf(“%d”, out);} int out=100;Answer:100                  Explanation:   This is the correct way of writing the previous program. Q2.       main(){ show();}void show(){ printf(“I’m the greatest”);}Answer:Compier error: Type mismatch in redeclaration of show. Explanation:When…

Read more »