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-182 Programming Concepts
11.
#include <string.h>
void main()
{
char a[40]={"Software people are intelligent"};
char b[40];
clrscr();
strcpy (b,&a);
printf("%s \n %s",a,b);
getche();
}
Bug: *&a instead of &a.
strchr()Function
12.
#include <string.h>
#include <conio.h>
void main()
{
char text[30]="SINGAPUR",cha,*chp;
clrscr();
printf("\nString is:-%s",text);
printf("\nCharacter to find :");
cha=getchar();
chp=strchr(text[],cha);
if(chp!=0)
printf("Character %d found in text.",cha);
else
printf("Character %d not found in text.",cha);
}
Bug: [] is not needed in chp line and %c is to be placed in place of %d in
printf statements.
strset()Function
13.
#include <st ...
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