1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
DanielleElmas [232]
3 years ago
15

What does this call to strcmp return?

Computers and Technology
1 answer:
Murljashka [212]3 years ago
3 0

Answer:

The correct for the given question is option(c) i.e .-1.

Explanation:

Strcmp() function is used to compare the two string .it compare the string character by character strcmp() function return the three value on comparison.

(1) if string 1 is equal to string 2  it return 0;

(2) it return>0 if  string1  has greater ASCII value than string 2

(3) it return <0 if  string1  has smaller ASCII value than string 2

In the given code strcmp returns -1 value the ASCII code of character 'A' has smaller then ASCII code  'X';

Following are the program of given code

#include<stdio.h>// header file

#include<string.h>

int main() // main method

{

 char x;

x =strcmp( "ABCD", "XXX" );

printf("%d",x);

return 0;

}

Output:-1

You might be interested in
How would you define the rule of thirds?
omeli [17]
C ‘this is where you should place the
5 0
4 years ago
What is elif? How does it work in python?
pav-90 [236]
It is the condition used after the if condition. say you use the if condition and you need to add another outcome, instead of using the if condition again, you’d use elif and end it with the else command.

example:

if num == 10:
print (“correct”)

elif num > 10:
print (“too high”)

else:
print (”too low”)

hope this helps :]
5 0
3 years ago
Read 2 more answers
Peter is a data analyst in a financial firm. He maintains a spreadsheet that contains all employee details. Peter wants to analy
alukav5142 [94]

Answer: filter the data of employees with more than five years of experience

Explanation:

The technique that Peter can use to perform this analysis is to filter the data of employees with more than five years of experience.

Filter in spreadsheets allows one to see the data that is required based on the input that was given. In this case, since Peter wants to analyze the data of all employees that have experience of more than five years, this can be filtered and the employees who have experience of more than 5 years will be shown.

The workers who have experience of less than five years will not b shown in this case.

3 0
3 years ago
After successfully building a machine language version of thePascal compiler, one could in principle discard the P-code interpre
MA_775_DIABLO [31]

Answer:

Pascal is a high-level programming language, and anyone can decide to write a machine language compiler with it, If Pascal language specifications get to change or somewhere in the code a bug is discovered, it will be easier to build the machine language compiler again from the Pascal code version than deciding to modify the machine language.

Explanation:

6 0
3 years ago
What is the climax of Ralph breaks the internet?
Murljashka [212]

Answer:

As with the real internet, side quests often end up becoming main quests, and Vanellope falls in love with the gritty nature of internet gaming (through Gal Gadot's speed-racer Shank). Ralph Breaks The Internet also ends up going into the dark web and uses that to form the base of the climax of the film.

Explanation:

hope that help thanx

6 0
3 years ago
Other questions:
  • Implement the function calcWordFrequencies() that uses a single prompt to read a list of words (separated by spaces). Then, the
    8·1 answer
  • To provide both encryption and integrity protection, wpa2 uses aes encryption with:
    12·1 answer
  • What is a mortgage?
    8·2 answers
  • What are the first steps in creating a business document
    6·2 answers
  • Please help me on this please i am giving all of my points so please help me
    6·1 answer
  • I need help ASP 3rd grade math ​
    11·2 answers
  • how is a two-dimensional array different from a traditional one dimensional array? From an ArrayList?
    6·1 answer
  • 1. In platform construction, wall-framing members include sole plates,
    15·2 answers
  • PLEASE HELP!
    12·1 answer
  • What information most likely presents a security risk on your personal
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!