Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Printf Command-Computer Fundamentals-Lab Codes, Exercises of Computer Fundamentals

The course covers important and advance elements of C and C plus plus programming language. This course provides the student with the skills required to design, code, and test and execute programs of simple to intermediate complexity. It includes: Function, Standard, Input, Header, File, Integers, Square, Utility

Typology: Exercises

2011/2012

Uploaded on 07/31/2012

karthik
karthik 🇮🇳

4.6

(17)

100 documents

1 / 1

Toggle sidebar

Related documents


Partial preview of the text

Download Printf Command-Computer Fundamentals-Lab Codes and more Exercises Computer Fundamentals in PDF only on Docsity! /* * Main_prgram.c * * This is the Program which has main function and we can called it * main program. * * Created on: Nov 13, 2010 * Author: mohsan */ #include <stdio.h> // standard input out #include "utility.h" // including custom header file /* * This is custom print function that only prints integers */ void my_print(int x) { printf("Number to be printed is %d\n",x); } int main() { int x=10,y,z=400,max; // calling square function declared and defined in utility.h and utility.c y=square(x); // calling my_print function declared and defined in Main_program.c my_print(y); // calling square function declared and defined in utility.h and utility.c max=maximum(x,y,z); // calling my_print function declared and defined in Main_program.c my_print(max); return 0; } docsity.com
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved