memset function in c 2b 2b

Solutions on MaxInterview for memset function in c 2b 2b by the best coders in the world

showing results for - "memset function in c 2b 2b"
Jacopo
18 May 2017
1#include <cstring>
2memset(a, 0, sizeof(a));
Niclas
16 Jun 2017
1memset(a, 0, sizeof(a)) 
2memset(str, '#', sizeof(str)); 
Carla
17 May 2018
1/* memset example */
2#include <stdio.h>
3#include <string.h>
4
5int main ()
6{
7  char str[] = "almost every programmer should know memset!";
8  memset (str,'-',6);
9  puts (str);
10  return 0;
11}
12
13Output: ------ every programmer should know memset!
Benoit
28 Jul 2018
1/* memset example */
2#include <stdio.h>
3#include <string.h>
4
5int main ()
6{
7  char str[] = "almost every programmer should know memset!";
8  memset (str,'-',6);
9  puts (str);
10  return 0;
11}
Valery
22 Feb 2019
1asdad