STANAANDREY

char to char*

May 10th, 2022 (edited)
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. char *chToChArr(char c)
  5. {
  6.     char *pChar = (char*)malloc(sizeof(char));
  7.     pChar = &c;
  8.     return pChar;
  9. }
  10.  
  11. int main() {
  12.  
  13.     return 0;
  14. }
  15.  
Add Comment
Please, Sign In to add comment