Answers for "print string data in c"

C
0

print string in c

// C program to illustrate strings
  
#include<stdio.h>
  
int main()
{   
    // declare and initialize string
    char str[] = "Geeks";
      
    // print string
    printf("%s",str);
      
    return 0;
}
Posted by: Guest on April-22-2022
0

print a part of string c

int length = 5;
printf("%*.*s", length, length, "hello there");
Posted by: Guest on May-10-2021

Code answers related to "C"

Browse Popular Code Answers by Language