Answered step by step
Verified Expert Solution
Question
1 Approved Answer
34 A string can be read using which function (s) a) gets() b) pringtfo c) scanf d) a and 35 What is the right way
34 A string can be read using which function (s) a) gets() b) pringtfo c) scanf d) a and 35 What is the right way to Initialize an array? (a) int num[6] = { 2, 4, 12, 5, 45, 5 }; (b) int num{6} = { 2, 4, 12, 5, 45, 5 }; (c) int num(6) = (2, 4, 12, 5, 45, 5); (d) none the above 36 The gets() function automatically appends a null character at the end of the string read from the keyboard. (a) True (b) False If you have 20 students that you want to print their names what C statement is the best to (a) if statement (b) for loop statement (c) while loop statement (d) do while statement use 38 Which function adds a string to the end of another strings (a) straddo) (b) strcat() (c) strtok() (d) strcpy 39 When float is converted to int, the value is? (a) Truncated (b) rounded (c) depend in the compiler (d) depend in the C standard 40 What will be the output of the C program? int i = 4, j = 7; while(++i
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started