Category: Language
When we don’t need any explicit stacks then we need recursion: #include<stdio.h> void decToBin(unsigned int n){ if(n==1)…
code: #include<stdio.h> void printNo(unsigned int n) { if(n==0) return; //it is outing from this function and going…
code: #include<stdio.h> void printMsg(unsigned int n) { if(n==0) return; //when we are using return in void function…
We see lots of void in C. Lets clear why we all use this. int myFunc(void){ }…
As I am learning I didn’t find the solution yet when I was trying to make a…
Code is here: #include<stdio.h> int main() { int number; scanf(“%d”,&number); char digits[2000000]; int i=0,d; while(number>0) { d=number%10;…
Recent Comments