answersLogoWhite

0

// Define and initialize input buffer

char inputBuffer[256];

memset(inputBuffer, '\0', 256);

// Get input

scanf("%s", inputBuffer);

// Display exactly what the user typed in

printf("%s\n", inputBuffer);

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Program to display multiplication of two matrix?

The matrix multiplication in c language : c program is used to multiply matrices with two dimensional array. This program multiplies two matrices which will be entered by the user.


What is the best jump higher program?

Skipping works.


Design an algorithm that will accept a perons name from the screen entered as surname first name separated by a comma Your program is to display the name as first name followed by three blanks?

Design an algorithm that will accept a perons's name from the screen entered as surname, first name, separated by a comma. Your program is to display the name as frist name, followed by three blanks, followed by the surname. -defining diagram -pseudocode algorithm


How do you start the display program in Linux from the command line?

the command "display" brings up the ImageMagick program.


How do you get a Java program to display a backslash in output without it interpreting it as a program command?

Follow the backslash with another backslash: System.out.println("\\ " \"); will display \ " \ on the screen.


Program that interprets and display webpages?

browser


How do you use the word cursor in a sentence?

A flashing, letter-sized portion of a computer screen operating a word processing program often indicates the position of the cursor, where new letters from a keyboard may be entered into the display on the screen.


Why does your Windows Live Movie Make make your videos Skip?

Something is wrong with your program. It should not be skipping.


write a program that will display one if you enter any number without it will display zero in c?

You can use the following C program to display "1" if a user enters any non-zero number, and "0" if the entered number is zero: #include <stdio.h> int main() { int num; printf("Enter a number: "); scanf("%d", &num); if (num != 0) { printf("1\n"); } else { printf("0\n"); } return 0; } This program reads an integer from the user and checks if it is non-zero or zero, then prints the corresponding output.


Write a shell program to find given no is even or odd?

The pseudo code would be as follows (you figure out the syntax) 1) Prompt the user to enter a number 2) If entered number is alpha, quit program after displaying message that the user ended the program. 3) Otherwise, find Modulo 2 of the entered number. This is a fancy way of saying "find the remainder when the number is divided by 2) 4) If Modulo 2 is zero, the number is even, otherwise odd 5) Display message showing if the entered number was Even or Odd 6) Branch back to step 1


Draw a flowchart that will accept radius and display the area of circle?

program that display the area of a circle of a reduce


Is presentation graphics program is an application program that allows you to search for and display Web pages?

No, it is not, that is a browser.