A function is written as follows to print the characters in reverse order until a character 'Z' is entered through the k
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
A function is written as follows to print the characters in reverse order until a character 'Z' is entered through the k
A function is written as follows to print the characters in reverse order until a character 'Z' is entered through the keyboard. Write a non-recursive program to do the same where the charaders we to be taken from a linked list. #include<stdio.h> 12-16-44 char reverse(X) { scanf("%c",&x), if (x!='Z') reverse(x); printf("%c",x); } main(){ char x; Once you upload files from your second device, click on Sync to check your submission Use mobile device to scan and upload your answer sheets reverse(x); }