The ____ function locates the first occurrence of the character in the string.

A. strtok()
B. strchr()
C. strnchr()
D. strncmp()

Answer: B

Computer Science & Information Technology

You might also like to view...

Which statement about vacuum tubes is NOT accurate?

A) They are similar to light bulbs. B) They seldom need to be replaced. C) They generate a lot of heat when operating. D) They were used in first-generation computers.

Computer Science & Information Technology

What is the right code for the boolean empty() method?

A queue based on a linked list uses the following code ``` class Node { String element; Node next; Node (String el, Node n) { element = el; next = n; } } Node front = null, rear = null; ``` A) return front == null; B) if (rear == front) return true; else return false; C) if (front == null) throw new RuntimeException("Empty"); else return false; return true; D) return front == rear;

Computer Science & Information Technology