What does the given code print

Assignment Help C/C++ Programming
Reference no: EM13893112

1. What does the following code print:

char* s1 = "ABCDE"; char* s2 = "ABCE";
if (strcmp(s1,s2) endl; else cout << s1 << " >= " endl;

2. What does the following code print:

char* s1 = "ABCDE"; char* s2 = "";
if (strcmp(s1,s2) endl; else cout << s1 << " >= " endl;

Reference no: EM13893112

Questions Cloud

Create a table of probabilities for each sum possibility : A game is proposed to you using two six-sided dice and one roll per turn. Two points are scored when the sum of the two dice equal a 'predetermined number' of your choice. One point is scored when at least one of the die equal half of the same 'prede..
Describe the biomolecule : Describe the biomolecule that you think is most important for the cell and why?
A relationship between eye color : Perform a hypothesis test to determine if there is a relationship between eye color and height based on this sample. Include all steps and written conclusion description with application use
Epidemiology and disease control : Epidemiology and Disease Control
What does the given code print : What does the following code print: char* s1 = "ABCDE"; char* s2 = "ABCE"; if (strcmp(s1,s2) endl; else cout = " endl.
Find the best predicted temperature at a time : Find the best predicted temperature at a time when a cricket chirps 3000 times in 1 minute. What is wrong with this predicted value?Chirps in 1 min     882 1188 1104 864 1200 1032 960 900
What are the benefits of real-life training scenarios : What criteria would you use in the emergency room to triage patients with potential exposure to the nerve agent sarin
Identify two functions for each type of macromolecule : Consider the monomers or subunits that compose protein, carbohydrate, lipid, and nucleic acid? Are all of the subunits just repeating units or are their differences in the subunits?
Calculate the test statistic z : An article in a journal reports that 34% of American fathers take no responsibility for child care. A researcher claims that the figure is higher for fathers in the town of Littleton. A random sample of 234 fathers from Littleton yielded 96 who did n..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Search for the value needle in the array

Search for the value needle in the array range given by [hay_begin ... hay_end), using the Linear Search algorithm. This function will return a pointer to the needle value if it is found, or a null pointer if needle is not found.

  Need c++ solution to cover the final stage of euro 2012

From Group Fase to elimination fases, it´s not the user who defines teams, because that must be made automatically according to classification in group fase - considering regulations.

  Coinflip to prompt for and input a number

Write a program and name it CoinFlip to prompt for and input a number of times to flip a coin, then to output the number of "heads" and the number of "tails" that were flipped.

  Write recursive and iterative versions of functions

Write recursive and iterative versions of functions that compute the sum of components of an array.

  You will create a linked list module

You will create a linked list module that exactly meets the specifications given in the supplied header (.h) file. The playlist program must accept a filename on the command line (argv).

  Write a program that reads numbers

Write a C++ program that reads N positive numbers from the keyboard, calculates and shows the smallest number of all numbers

  Write a c program that will read the required values

Write a C program that will read the required values from the input file, compute the hole to depth ration, the ideal number of sticks, the ideal powder charge, the actual powder charge, and the actual number of sticks.

  Prepare a program for sorting the numbers

Write a program that orders three double numbers by increasing value. The program should include a function named sort3 that takes three double * arguments (pointer to double). The function prototype is void sort3(double *x, double *y, double *z);

  How do you make a row with different string names

How do you make a row with different string names and put a certain amount of space between each one?

  Define a structure to store marks of a student

Define a structure to store roll no, name and marks of a student - using the structure of Q2. a), above write a 'C' program to create a file "student.dat". There must be one record for every student in the file.

  Create a funcion called max

Create a funcion called max().

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd