Tuesday, 12 June 2018

Function

True/False

1.  Functions can return a floating point number.
2. 26.    NULL pointer is not same as an uninitialized pointer.

Question:
1. Write a program to find the power of number using function.

.          2. Write a function to print the sum of the following series:
 1 + 2+ 33 + … + nn

where n is passed as an argument to the function.

No comments:

Post a Comment

ch-12 File Handling

Mcq 1. What does fp point to in the program?   #include<stdio.h> int main() {   FILE *fp;   fp=fopen("trial",...