SEARCH C# PROGRAMMING CODES HERE

Strings in c programming
String is a data type used in programming, such as an integer and floating point unit, but is used to represent text rather than numbers.
*******************************************************************************
Note-To Read & write we use Strings 
Printf() and Scanf() functions in C language.
#include <stdio.h>
#include <string.h>
int main()
{
    char nickname[20];
    printf("please enter your name=");
    scanf("%s", nickname);
    printf("%s",nickname);
    return 0;
}
Output:
please enter your name=Rohit
                                       Rohit

No comments:

Post a Comment