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
Drupady [299]
3 years ago
7

Write a program that reads a person's first and last names separated by a space, assuming the first and last names are both sing

le words. Then the program outputs last name, first name. End with newline.
Example output if the input is: Maya Jones

code in C language
Computers and Technology
1 answer:
stepan [7]3 years ago
6 0

Following are the code to input string value in C Language.

Program Explanation:

  • Defining header file.
  • Defining the main method.
  • Inside the method, two char array "lname, fname" is declared, which inputs value from the user-end.
  • After input value, a print method is declared that prints the last name with ","  and first name.

Program:

#include <stdio.h>//header file

int main()//defining main method

{

char lname[15],fname[15];//defining two char array

scanf("%s%s",fname, lname);//use input method that takes string value in it  

printf("%s , %s",lname,fname);//use print method that prints string value

return 0;

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/14436979

You might be interested in
Why aren't my skullcandy bluetooth headphones connecting to my school chromebook if I turned on both the headphones and the blue
ludmilkaskok [199]
The school could have a block on what’s allowed to be connected to the chrome books. If they don’t let you charge your phone on it then you can’t listen to music with it- My experience at least.
4 0
2 years ago
Read 2 more answers
Question 1 :George, a user, is having trouble connecting to network resources, including shared folders on the local network and
vazorg [7]

Complete Question:

George, a user, is having trouble connecting to network resources, including shared folders on the local network and Internet resources. Yesterday he was able to connect with no problems. You need to ensure that he can connect to these resources. Which tool should you use FIRST?

Group of answer choices

A. ipconfig

B. Device Manager

C. My Network Places

D. Control Panel

Answer:

A. ipconfig

Explanation:

As a network administrator, to ensure that George can connect to the network resources, shared folders, and internet resources, the tool you should use first is the "ipconfig" in the command line. This is a troubleshooting process that would help to identify the problem and to establish a theory of probable cause.

<em>Since George could connect the previous day without any problem, it is most likely that the TCP/IP settings has been altered. Therefore, to view this settings you'll have to use an ipconfig command. </em>

4 0
4 years ago
Which term is defined as a spreadsheet file?<br> cell<br> column<br> sheet<br> workbook
joja [24]
The answer for this question is sheet.
8 0
3 years ago
Read 2 more answers
Consider the following sequence of page references: 1 2 3 3 4 4 1 4 1 3 4. Determine how many page faults will occur with LRU(Le
Vsevolod [243]

Answer:

7 page faults

Explanation:

I have created a small Java program that can be seen in the attached picture below. This Java program uses an LRU algorithm in order to find the number of page faults within an array of page references from the references given in the question. Using these references, and the java program we can see that there are a total of 7 page faults. This can be seen in the output highlighted by red in the picture below.

7 0
3 years ago
Cans someone pls help me to do edhesive 2.5 code practice
Step2247 [10]

Answer:

Xjenwbsjhdbee

Explanation:

Shxbebwhddbd

4 0
3 years ago
Other questions:
  • In Linux Operating System, what file extension is used forexecutable files?
    6·1 answer
  •                                                        HELP PLEASE 
    12·2 answers
  • What does a closed-envelope icon next to an e-mail message header indicate?\?
    8·1 answer
  • By default, server manager does not connect with down-level servers (for example, windows server 2008). what must be done to pro
    13·1 answer
  • 4. What will the following line of code produce?
    13·1 answer
  • WILL GIVE BRAINLEST!!!!!!!! 10 POINTS!!!!
    5·2 answers
  • A ___ is an online collaborative event that may include such features as chat, slideshows, and PowerPoint presentations.
    8·1 answer
  • help i was building my pc and i pushed the cpu into the socket really hard until there was an audible crack and it went into the
    7·1 answer
  • What is one advantage of storing numeric data in variables?
    10·1 answer
  • ASAP PLEASE the online research you did to describe how Senet is related to the culture and historical period when it was create
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!