What is the return value of the following statement if it is placed in C program? strcmp(“ABC”,”ABC”);
C - Strings

Quiz
•
Computers
•
University
•
Medium
Ise Jnnce
Used 95+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
33
-1
1
0
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which built in function is used to convert string to lowercase
strlen()
strlwr()
strcmp()
strrev()
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is not a built in function
string()
strlen()
strcat()
strrev()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
String is an array of characters with …….. character as the last element of array.
Null
Empty
0
1
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the format specifier used to print or read a character in an array in Printf or Scanf function?
%C
%f
%w
%c
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following function is more appropriate for reading in a multi-word string?
scanf()
gets()
printf()
puts()
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The library function used to copy a string to another is
strncpy()
strcmp()
strcpy()
strchr()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
TECHFEST QUALIFYING ROUND

Quiz
•
University
15 questions
Coding club Summit Online Quiz

Quiz
•
University
17 questions
Minggu V - PKS 2 - Pemrograman C++

Quiz
•
University
18 questions
CP-String

Quiz
•
University
20 questions
Apuntadores en C

Quiz
•
University
18 questions
C Language 101

Quiz
•
University
15 questions
CIS1101-programming practice

Quiz
•
University
15 questions
C Language Quiz-1

Quiz
•
University - Professi...
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade