1/18
Vocabulary flashcards covering core C programming algorithms, mathematical formulations, array manipulation, string routines, and pointer operations.
Simple Interest Formula
The mathematical formula implemented to calculate simple interest on a principal amount: simple_interest=100principal×rate×time.
Compound Interest Formula
The formula used to compute compound interest: compound_interest=principal×pow(1+100rate,time)−principal.
Two-Variable Swapping Algorithm
An arithmetic logic that exchanges the values of two integer variables without utilizing a temporary third variable: a=a+b, b=a−b, and a=a−b.
Quadratic Discriminant
The algebraic expression discriminant=b×b−4×a×c used to determine root characteristics: distinct real roots if discriminant>0, equal real roots if discriminant=0, and complex roots if discriminant<0.
Complex Roots Formulas
The mathematical calculations used when the quadratic discriminant is negative: the real part is realPart=2×a−b and the imaginary part is imagPart=2×a−discriminant.
Multiplication Table Logic
An iterative construct that outputs the multiples of a given integer by executing a loop from i=1 to i=10 and calculating num×i.
Prime Number Check Logic
An algorithm that identifies non-prime numbers by setting flag=1 if num=0 or num=1, or if num(modi)=0 for any divisor i ranging from 2 up to 2num.
Integer Palindrome Algorithm
A procedure that checks if a number reads the same forwards and backwards by extracting digits using rem=n(mod10), accumulating rev=rev×10+rem, updating n=10n, and checking if n1=rev.
Decimal to Binary Conversion (0–255)
A technique to convert a positive integer up to 255 into binary by iteratively recording remainders bit[i]=number(mod2), dividing number=2number, and printing the stored bits in reverse order.
Array Sum Accumulation
An algorithm that calculates the total sum of array elements by initializing an accumulator to sum=0 and iteratively updating sum=sum+array[i] across all indices.
Largest Element Algorithm
A linear search logic that initializes largest=a[0], compares each subsequent array element, and reassigns largest=a[i] whenever largest<a[i].
Matrix Multiplication Compatibility Condition
The requirement that matrix multiplication is valid only when the number of columns in the first matrix equals the number of rows in the second matrix (c1=r2).
Matrix Multiplication Algorithm
The triple-nested loop computation where each element of the resulting matrix is computed as C[i][j]=0 and accumulated via C[i][j]+=A[i][k]×B[k][j] for index k from 0 to c1−1.
Substring Insertion Algorithm
A string operation that shifts characters starting at target index n forward by l2 positions via str1[i+l2]=str1[i] and copies the characters of the second string str2 directly into index positions starting at n.
Character Deletion Algorithm
A string manipulation technique that removes n characters starting at position pos by shifting subsequent characters left using str[i−n]=str[i] and null-terminating the string at index l−n.
String Palindrome Check
A comparison procedure that verifies whether a string matches its reverse by testing if string1[i]=string1[length−i−1] for every index i from 0 up to 2length−1.
malloc Function
A dynamic memory allocation function declared in
Pointer Offset Dereferencing
A pointer access method that reads and accumulates values from dynamically allocated memory using the dereferencing syntax *(a + i) for each index offset i.
Reverse Array Pointer Traversal
A traversal method where a pointer is initialized to the last array element address (&arr[n - 1]) and systematically moved backward using the decrement operator (ptr--) to print elements in reverse order.