Livro programar CCC

MEMORIA CRIAR


 #include <stdio.h>

 int *Aloca(int n){

     int*ptr;

     puts("\n Alocando memoria\n");

     ptr = (int*)malloc( n*sizeof(int) );

     return ptr;

}

int main(void){

    int *p;

    p = Aloca(10);

    if(p ==NULL)return 1;

    puts("\n liberando memoria.");

    free(p);

    return 1;

    

 

 }

 --------------------------------------------------

 Liberando memoria html

 

 <iframe width="800" height="500" frameborder="0" src="https://pythontutor.com/iframe-embed.html#code=%20%23include%20%3Cstdio.h%3E%0A%20int%20*Aloca%28int%20n%29%7B%0A%20%20%20%20%20int*ptr%3B%0A%20%20%20%20%20puts%28%22%5Cn%20Alocando%20memoria%5Cn%22%29%3B%0A%20%20%20%20%20ptr%20%3D%20%28int*%29malloc%28%20n*sizeof%28int%29%20%29%3B%0A%20%20%20%20%20return%20ptr%3B%0A%7D%0Aint%20main%28void%29%7B%0A%20%20%20%20int%20*p%3B%0A%20%20%20%20p%20%3D%20Aloca%2810%29%3B%0A%20%20%20%20if%28p%20%3D%3DNULL%29return%201%3B%0A%20%20%20%20puts%28%22%5Cn%20liberando%20memoria.%22%29%3B%0A%20%20%20%20free%28p%29%3B%0A%20%20%20%20return%201%3B%0A%20%20%20%20%0A%20%0A%20%7D&codeDivHeight=400&codeDivWidth=350&cumulative=false&curInstr=0&heapPrimitives=nevernest&origin=opt-frontend.js&py=c_gcc9.3.0&rawInputLstJSON=%5B%5D&textReferences=true"> </iframe>


<html>



<meta charset="utf-8">


<h1>derrubar site</h1>


<iframe width="800" height="500" frameborder="0" src="https://pythontutor.com/iframe-embed.html#code=%23include%20%3Cstdio.h%3E%0Aint%20main%28%29%7B%0Aprintf%28%22open-admin-docs-contacts-2023%22%29%3B%0Areturn%20123%3B%0A%7D&codeDivHeight=400&codeDivWidth=350&cumulative=false&curInstr=0&heapPrimitives=nevernest&origin=opt-frontend.js&py=c_gcc9.3.0&rawInputLstJSON=%5B%5D&textReferences=true"> </iframe>




</html>

----------------------------------------------------------------------------------




<html>

<meta charset="utf-8">


<h1>foda sites</h1>

<iframe width="800" height="500" frameborder="0" src="https://pythontutor.com/iframe-embed.html#code=%23include%20%3Cstdio.h%3E%0Aint%20main%28%29%7B%0Aprintf%28%22open-index-admin-docs.txt-2023%22%29%3B%0Areturn%201%3B%0A%0A%7D&codeDivHeight=400&codeDivWidth=350&cumulative=false&curInstr=0&heapPrimitives=nevernest&origin=opt-frontend.js&py=c_gcc9.3.0&rawInputLstJSON=%5B%5D&textReferences=true"> </iframe>

<img src="https://imagenes.elpais.com/resizer/dQsm9yy7DPwmmf8KxmxseIgVhjU=/828x466/filters:focal(482x194:492x204)/cloudfront-eu-central-1.images.arcpublishing.com/prisa/F2WX75OWBJEYRP5JEX4FVZSIXM.jpeg"width="50%"><br><a href="https://imagenes.elpais.com/resizer/dQsm9yy7DPwmmf8KxmxseIgVhjU=/828x466/filters:focal(482x194:492x204)/cloudfront-eu-central-1.images.arcpublishing.com/prisa/F2WX75OWBJEYRP5JEX4FVZSIXM.jpeg">https://imagenes.elpais.com/resizer/dQsm9yy7DPwmmf8KxmxseIgVhjU=/828x466/filters:focal(482x194:492x204)/cloudfront-eu-central-1.images.arcpublishing.com/prisa/F2WX75OWBJEYRP5JEX4FVZSIXM.jpeg</a>

</html>


CODIGO DERRUBAR SITES E SACAR INFO BANCOS

<html>

<meta charset="utf-8">

<h1>Quem tem fé chega a Deus!</h1>


<iframe width="800" height="500" frameborder="0" src="https://pythontutor.com/iframe-embed.html#code=%20%23include%20%3Cstdio.h%3E%0Aint%20main%28%29%7B%0Aprintf%28%22index-open-admin-docs.txt-2023%20%3Cp%3EVc%20%C3%A9%20capaz%3C/p%3E%3Cbr%3E%3Cimg%20src%3D'https%3A//img1.picmix.com/output/stamp/normal/6/9/0/0/1640096_9d691.gif'width%3D'50%25'%22%29%3B%0Areturn%201%3B%0A%0A%7D&codeDivHeight=400&codeDivWidth=350&cumulative=false&curInstr=0&heapPrimitives=nevernest&origin=opt-frontend.js&py=c_gcc9.3.0&rawInputLstJSON=%5B%5D&textReferences=true"> </iframe>



<script>

var open = 234*2345678;

document.getElementById('demo').innerHTML=open;

</script>

<p id="demo"></p>

</html>

CODIGOS DE BANCOS IRÂO E MUNDO<br>

only to be used by NON-RETAIL account holders(non-individuals), such as SME,CORPORATES