Question: 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)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!