I hereby claim:
- I am junaidrahim on github.
- I am junaidrahim (https://keybase.io/junaidrahim) on keybase.
- I have a public key whose fingerprint is 590C EAEF 3016 9B63 A8E5 ADF2 D24A C616 9919 BBDD
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| int main(){ | |
| int *p = new int[10]; | |
| // oops forgot to delete p | |
| return 0; | |
| } |
| #include <iostream> | |
| #include <memory> | |
| using namespace std; | |
| class SomeBigObject{ | |
| public: | |
| float data[1000]; | |
| void something() { |
| #include <iostream> | |
| #include <memory> | |
| using namespace std; | |
| void DoSomething(){ | |
| unique_ptr<int[]> p = make_unique<int[]>(50); | |
| // do some processing with the array | |
| } // p is automatically freed when it goes out of scope. |
| #include <iostream> | |
| using namespace std; | |
| void DoSomething(){ | |
| int *p = new int[50]; | |
| // do some processing with the array | |
| delete[] p; // free the memory |
| #include <iostream> | |
| using namespace std; | |
| int main(){ | |
| int t; | |
| cin >> t; | |
| int a; | |
| double n; |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net/http" | |
| ) | |
| func handler(w http.ResponseWriter, r *http.Request) { | |
| fmt.Fprintf(w, "Hi there") |
| import React, { useState } from "react"; | |
| import Loader from "react-loader-spinner"; | |
| const App = () => { | |
| const [spinnerLoading, setSpinnerLoading] = useState(true); | |
| return ( | |
| <div style={{ textAlign: "center" }}> | |
| <br></br> | |
| <br></br> |
| import React from "react"; | |
| import Loader from "react-loader-spinner"; | |
| const App = () => { | |
| return ( | |
| <div> | |
| <Loader | |
| type="Puff" | |
| color="#00BFFF" | |
| height={100} |