Explain how can a program be made to print the name of a source file where an error occurs?
No Answer is Posted For this Question
Be the First to Post Answer
Is null a keyword in c?
Write a c pgm for leap year
11 Answers College School Exams Tests, IBM, TCS,
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
Array is an lvalue or not?
How to create struct variables?
what do you mean by enumeration constant?
What is data structure in c programming?
Give a fast way to multiply a number by 7
15 Answers Accenture, Aricent, Microsoft,
Can we increase size of array in c?
How can I increase the allowable number of simultaneously open files?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?