Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

memset in cpp

/* memset example */
#include <stdio.h>
#include <string.h>

int main ()
{
  char str[] = "almost every programmer should know memset!";
  memset (str,'-',6);
  puts (str);
  return 0;
}

Output: ------ every programmer should know memset!
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #memset #cpp
ADD COMMENT
Topic
Name
8+6 =