#include <stdio.h>
#include <string.h>

int main () 
{
   char str[50];

   strcpy(str,"This is string.h library function");
   memset(str,'\0',10); // 10 Adet '\0' karekterini baştan sona doğru str charına ekleme yapar.

   puts(str);
   
   return(0);
}

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *