Anton pfp

Anton

@antohin

1200 Following
77 Followers


Anton pfp
Anton
@antohin
πŸ”₯ Let's talk about mistakes! πŸ”₯ Check the code below and give your answer! *** C-CODE *** #include <stdio.h> #include <stdlib.h> typedef struct block_chain_link{ float send; float receive; struct block_chain_link* next_link; } block_chain_link; int main() { block_chain_link* new_link; block_chain_link* ptr = NULL; float amount = 5.321652; // first block new_link = (block_chain_link*)malloc(sizeof(block_chain_link)); new_link->send = amount; new_link->receive = 0; new_link->next_link = ptr; ptr = new_link; // second block new_link = (block_chain_link*)malloc(sizeof(block_chain_link)); new_link->send = 0; new_link->receive = amount-1; new_link->next_link = ptr; ptr = new_link; printf("Block 2: receiver received of %f token amount\n", ptr->receive); ptr = ptr->next_link; printf("Block 1: sender sent of %f token amount", ptr->send); return 0; }
0 reply
2 recasts
0 reaction

Anton pfp
Anton
@antohin
ANYKEYMAN - young and inexperienced employee whose responsibilities include some knowledge of basic system administration and counseling inexperienced PC users πŸ€¦πŸΌβ€β™‚οΈ Is this really your maximum?! Go and Learn programming and math! πŸš€
0 reply
0 recast
0 reaction

Anton pfp
Anton
@antohin
https://warpcast.com/antohin/0x374aa1b4
0 reply
1 recast
0 reaction

Anton pfp
Anton
@antohin
https://warpcast.com/antohin/0xd78d9aab
1 reply
0 recast
7 reactions

Anton pfp
Anton
@antohin
https://warpcast.com/antohin/0xd78d9aab
0 reply
0 recast
2 reactions

Anton pfp
Anton
@antohin
https://warpcast.com/antohin/0xd78d9aab
0 reply
0 recast
10 reactions

Anton pfp
Anton
@antohin
https://warpcast.com/antohin/0xd78d9aab
0 reply
1 recast
10 reactions

Anton pfp
Anton
@antohin
https://warpcast.com/antohin/0xd78d9aab
0 reply
3 recasts
0 reaction

Anton pfp
Anton
@antohin
https://warpcast.com/antohin/0xd78d9aab
0 reply
0 recast
2 reactions

Anton pfp
Anton
@antohin
https://warpcast.com/antohin/0xd78d9aab
0 reply
0 recast
4 reactions

Anton pfp
Anton
@antohin
https://warpcast.com/antohin/0xd78d9aab
0 reply
1 recast
0 reaction

Anton pfp
Anton
@antohin
https://warpcast.com/antohin/0xd78d9aab
0 reply
0 recast
1 reaction

Anton pfp
Anton
@antohin
https://warpcast.com/antohin/0xd78d9aab
0 reply
3 recasts
0 reaction

Anton pfp
Anton
@antohin
πŸ”₯ Hey! πŸ”₯ What about link between Math and Programming? πŸ”₯ Next function describe green curve below: #include <stdio.h> #include <math.h> float the_function(float x); int main() { float x = 16; printf("For x = %.1f the function give %.1f", x, the_function(x)); return 0; } float the_function(float x){ return -12*pow(x,2)+870*x+9600; }
0 reply
0 recast
2 reactions

Anton pfp
Anton
@antohin
This code helps you to understand pic! #include <stdio.h> int main() { float A; // our variable float* ptr; // variable that can be save address of any other variable A = 5; // set value ptr = &A; // get address of variable A and save it into variable ptr printf("Address of A is %p \n", ptr); printf("Variable A is %f \n", *ptr); // dereference ptr ("open" variable ptr) return 0; }
0 reply
0 recast
0 reaction

Anton pfp
Anton
@antohin
Admirable pic!
0 reply
0 recast
0 reaction

Anton pfp
Anton
@antohin
Congratulations! So happy for you both! 🌹
0 reply
0 recast
0 reaction

Anton pfp
Anton
@antohin
Congratulations! So happy for you both! 🌹
0 reply
0 recast
0 reaction

Anton pfp
Anton
@antohin
πŸ”₯ Take this! πŸ”₯ Do you remember when we talk about the addresses of variables? This concept is very important, because whole of technical devices uses it! Lets describe this on picture with maximally precision! Is not this beautiful? ☺️
1 reply
0 recast
0 reaction

Anton pfp
Anton
@antohin
There are a lot of people who do it ^_^
0 reply
0 recast
0 reaction