Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
13 views2 pages

Icp Lab 6

The document discusses a lab report about functions, scope of variables, and argument passing. It covers understanding variable scope with functions and more practice with custom functions. The lab task involves completing a function that takes 4 floating point numbers as inputs and returns their sum of products.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Icp Lab 6

The document discusses a lab report about functions, scope of variables, and argument passing. It covers understanding variable scope with functions and more practice with custom functions. The lab task involves completing a function that takes 4 floating point numbers as inputs and returns their sum of products.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

COMSATS University Islamabad

Park Road, Tarli Kalan, Islamabad


LAB REPORT # 6
CLASS
BEE-2D
SUBMITTED TO
Mam Sadaf Iqbal
COURSE
Introduction to Computer Programming
SUBMITTED BY
Muhammad Sharjeel (FA21-BEE-130)
LAB # 06: Functions, scope of Variables and Argument
passing
OBJECTIVES:
 Understand the scope of variables when working with custom functions.
 Provide more practice for custom functions.

In-Lab:
In-Lab Task 01:
Given the C program in the following code listing, complete the function sum _ of _ prod ( ) that
takes 4 inputs (floating point numbers) and returns their sum of products. Observe the outputs
generated by the program and explain what is happening with the Global variables and the
Formal Parameters.

You might also like