Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ReDisp
//gcc 7.4.0 //ReDisp: write a program that displays a string on the screen, one character at a time,using a recursive function; //this code is created by Rezaul Hoque on March 28,2022; //contact: jewelmrh@yahoo.com,Dhaka, Bangladesh //note: codes shared by Rezaul Hoque on rextester are not for sale; they are created and shared to facilitate the algorithm learning process; many like Hoque use this platform to practice programming ;Rezaul hopes his contribution helps others to fine tune their learning; #include <stdio.h> #include <string.h> #include <stdlib.h> void cpy(char*,char*); void redisp(int,char*); int n=32; void cpy(char* dest,char* source) { for(int i=0; *(source+i);i++) *(dest + i)= *(source+i); } void redisp(int k,char* s){ if(k<n){ printf("%c",*(s+k)); redisp(k+1,s);} } int main(){ char a[n]; cpy(a,"Recursion example.\nMarch 28,2022."); redisp(0,a); return 0; }
run
|
edit
|
history
|
help
0
Hello
p20
time conversion1
141128_EjemploChorraArray
project 5 v0.04
Matriz funcona medio raor aslñdk
BST
dynamic memory allocation.c
MATRIZ DE CADENAS
poinres1