Skip to Main Content
Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
book

Xpress Learning - Computer Fundamentals of Programming an IT by Pearson

by Ashok N. Kamthane, Rohit Khurana
May 2024
Beginner to intermediate content levelBeginner to intermediate
465 pages
16h 14m
English
Pearson India
Content preview from Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
II-232 Programming Concepts
8.
#include <stdio.h>
#include <conio.h>
void main()
{
int num=5,result;
clrscr();
result=cb(num);
printf("\n Result of function is=
%.2d",result);
getche();
}
cb(int x)
{
float y;
y=x*x*x;
return(y);
}
OUTPUT:
Result of function is = 125
Find the bug/s in the following program/s.
1.
#include <stdio.h>
#include <conio.h>
void main()
{
int sum( int j, k,l);
clrscr();
sum(1,2,3);
}
sum (int j,int k, int l)
{
printf("%d %d %d",j,k,l);
}
Bug: Function prototype error
M10_ITL-ESL4791_02_SE_C10.indd 232 12/22/2012 5:01:43 PM
Functions II-2 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Express Learning - Computer Fundamentals and Programming

Express Learning - Computer Fundamentals and Programming

Ashok Kamthane, ITL ESL
Windows® Internals, Sixth Edition, Part 2

Windows® Internals, Sixth Edition, Part 2

David A. Solomon Mark E. Russinovich and Alex Ionescu

Publisher Resources

ISBN: 9781299954878