Answers for "memset in cpp"

C++
7

pionter in c++

#include <iostream>
using namespace std;
int main(){
   //Pointer declaration
   int *p, var=101;
 
   //Assignment
   p = &var;

   cout<<"Address of var: "<<&var<<endl;
   cout<<"Address of var: "<<p<<endl;
   cout<<"Address of p: "<<&p<<endl;
   cout<<"Value of var: "<<*p;
   return 0;
}
Posted by: Guest on March-30-2020
0

memset in c++

#include <cstring>
memset(a, 0, sizeof(a));
Posted by: Guest on June-05-2021
0

memset c++

memset(a, 0, sizeof(a)) 
memset(str, '#', sizeof(str));
Posted by: Guest on April-20-2021
0

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!
Posted by: Guest on March-26-2021
0

Memset function in C++

/* 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;
}
Posted by: Guest on August-26-2021
0

memset in c++

asdad
Posted by: Guest on May-27-2021

Browse Popular Code Answers by Language