Game Programming Using C
PART 1

Search for a command to run...
PART 1

I started interview prep playlist of leetcode called blind - 75 and took Dynamic programming topic for solving and came across this problem climbing stairs Logic is simple .Let us take an example n = 1 means there is 1 stair and number of steps requ...
1.What is subroutine? => Subroutine is repeatative block of code for example sort function. 2.Why and how we use subroutine? => We place this repeatative code somewhere in memory and whenever we require that code we branch or jump to that code using ...
Compilers convert C code into Instructions HEAP Whenever you use malloc or calloc or global or static variable we use the memory of heap Registers Registers are special memory containers present in CPU. There are general purpose registers (eax,ebx,e...
Whenever we call function there is big hand of low level in this process.First address where this code of function is present is calculated as immediate value or it is already given in general purpose register. For this blog let us assume that it is ...
the for loop that you use in programming is basically a implementation of BRANCH instruction.In this blog we will discuss how this BRANCH instruction works. In normal program execution,program is extracted from memory and and PC is incremented by 4 a...
Given-> 2000: 1 2004: 2 2008: 3 3000: 4 3004: 5 3008: 6 4000: 3 5000: AFSASDFASDFASD Find the dot product of above two vectors Find the initial address of two vectos ``` MOV R1,#2000 MOV R2,#...
PROBLEM LINK -> https://leetcode.com/problems/the-number-of-weak-characters-in-the-game/ Approach sort given 2d array in descending order qsort(properties, propertiesSize, sizeof(properties[0]), compare); Then we will traverse the 2d array if wh...
There are 3 basic elements of client server system -> Client -> Sends the request to server for resources Server -> Sends the resources to client on the request Socket -> Gateway for sending and recieving the request To program this we have 4 bas...
