Calculate the weighted average of a list of n numbers using
the formula
xavg = f1x1+f2x2+ ….+ fnxn
where the f’s are fractional weighting factors, i.e.,
0<=fi<1, and f1+f2+….+fn = 1
No Answer is Posted For this Question
Be the First to Post Answer
Calculate 1*2*3*____*n using recursive function??
Explain the Difference between the New and Malloc keyword.
What are dangling pointers? How are dangling pointers different from memory leaks?
write a c program to print the values in words eg:- 143 written it has (one hundred and forty three)& 104, 114 are also written words
5 Answers Captronic, DELL, Google, IBM, Mithi, RCC, Wipro,
While(1) { } when this loop get terminate is it a infinite loop?
How does the C program handle segmentation faults?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
Is array a primitive data type in c?
What are local static variables?
What is the value of y in the following code? x=7;y=0; if(x=6) y=7; else y=1;
Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)