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
Array II-145
(c) int [3] = {1,2,3};
(d) All the above
43. Choose the incorrect syntax
(a) char c[]="India";
(b) char c[10]="India";
(c) char c[10]={"I","n","d","i","a"};
(d) char c[] = {'I','n','d','i','a'};
44. int a[2]; is integer array. Which of the following will correctly insert values into it?
(a) a[1] = 1; a[2] = 2;
(b) for(i=1;i<=2;i++)a[i] = i;
(c) int a[0] = i; int a[1] = 2;
(d) for(i=0;i<2;i++)a[i] = i;
45. printf("%s",metro); The metro will be correctly printed for
(a) char metro [] = "Mumbai";
(b) char metro [6] = "Mumbai";
(c) char metro [6] = {'M','u','m','b','a','i'};
(d) char metro []; city = "Mumbai";
46. int a[] = {1,2,3,4,5}; to print ...
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