his is the code that is asked to be solved by repeating the question:  #include #include int main() {    char your_name[20],surname[20];    printf("Enter your name:\n");    scanf("%s",your_name);    printf("Enter your surname:\n");    scanf("%s",surname);    strcat(your_name," ");    strcat(your_name,surname);    printf("Full name: %s",your_name); } By using this code I need answer in C programming language

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter6: Creating, Sorting, And Querying A Table
Section: Chapter Questions
Problem 10EYK
icon
Related questions
Question

This is the code that is asked to be solved by repeating the question: 

#include <stdio.h>

#include<string.h>

int main()

{

   char your_name[20],surname[20];

   printf("Enter your name:\n");

   scanf("%s",your_name);

   printf("Enter your surname:\n");

   scanf("%s",surname);

   strcat(your_name," ");

   strcat(your_name,surname);

   printf("Full name: %s",your_name);

}

By using this code I need answer in C programming language.

2. Repeat the question 1 with the strncat() function so that n is the last digit of
your student number (if it's 0 then take 1 instead).
Transcribed Image Text:2. Repeat the question 1 with the strncat() function so that n is the last digit of your student number (if it's 0 then take 1 instead).
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L