Which of the following statements are correct? A string is a collection of chara
ID: 3556471 • Letter: W
Question
Which of the following statements are correct? A string is a collection of characters terminated by '/0'. The format specifier %s is used to print a string. The length of the string can be obtained by strlen(). The pointer CANNOT work on string. 1,2 1,2,3 2,4 3,4 What will be the output of following program? # include int main () { float a = 5,b = 2; int c,d; c = a%d; d = a/2; printf("%d / n",d); return 0; } 3 2 Error None of above On which if the following operator can % operator NOT be used? Int variable float variable int constant All of above The two operators && and || are? Arithmetic operators equality operators logical operators relational operators None of aboveExplanation / Answer
B
C
B
C
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.