C Programming – Replace all ‘0’ with ‘5’ in an input Integer – Mathematical Algorithms – The idea is simple, we get the last digit using mod operator ‘%’.
function program in c
C++ Programming Multiply two polynomials – Mathematical Algorithms – A simple solution is to one by one consider every term of first polynomial and multiply
C Programming Draw a circle without floating point arithmetic – Mathematical Algorithms – Following program uses a simple concept Let the radius be r.
Find the two non-repeating elements in an array of repeating elements – Bit Algorithm – Given an array in which all numbers except two are repeated once.
setviewport function in c – c programming – setviewport function is used to restrict drawing to a particular portion on the screen. For example setviewport
getpixel function in c – c programming -getpixel function returns the color of pixel present at location(x, y).Declaration :- int getpixel(int x, int y);
getmaxy function in c – c programming – getmaxy function returns the maximum Y coordinate for current graphics mode and driver.
getmaxx function in c – c programming – getmaxx function returns the maximum X coordinate for current graphics mode and driver.