Search
 
SCRIPT & CODE EXAMPLE
 

C

string text line

#include <stdio.h>
//You can use the fgets() function to read a line of string. 
//you can use puts() to display the string.
//to solve spacing problem in scanf()
int main()
{
    char name[30];
    printf("Enter name: ");
    fgets(name, sizeof(name), stdin);  // read string
    printf("Name: ");
    puts(name);    // display string
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: how to do Employing defensive code in the UI to ensure that the current frame is the most top level window 
C :: print char* address C 
C :: run steam as root 
C :: How to include multiline conditional inside template literal 
C :: Tensorflow: What are the "output_node_names" for freeze_graph.py in the model_with_buckets model? 
C :: c to assembly online compiler 
C :: divide a linked list into three parts based on their position mod 3. 
C :: how to link flexslider 
C :: hgggggggggggggggg 
C :: OpenDaylight maven settings 
C :: how to write flash memory in stm32f030 
C :: cmake boilerplate for visual studio c++ project 
C :: Dynamic Memoray alocation For 2D 
C :: link a lib iusing pragma 
C :: pdo crud 
C :: 50 north main 07522 
C :: clarity ppm jasper domain commands 
C :: sue murry 
C :: how to devowel string in c program 
C :: Manage Menu Driven Program using switch statement 
C :: payement des véhicules a la sortie de station de langue c 
C :: A string S is passed as the input. Two words W1 and W2 which are present in the string S are also passed as the input. The program must find the minimum distance D between W1 and W2 in S (in forward or reverse order) and print D as the output. 
C :: c declare float 
C :: i2c scanner 
C :: array length in c++ 
Dart :: flutter generate random color 
Dart :: flutter print type 
Dart :: color of status bar flutter 
Dart :: get file size flutter 
Dart :: How do you add a label (title text) to a Checkbox in Flutter? 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =