write a program in reverse the string without using
pointer,array,global variable declaration,lib fun only using
a function?
Answer Posted / sr amit tyagi
#include<stdio.h>
#include<conio.h>
void main()
{
FILE *f;
char c;
clrscr();
f=fopen("string","w");
while((c=getchar())!=EOF)
{
putc(c,f);
}
fclose(f);
f=fopen("string","r");
fseek(f,-1L,2);
do
{
putchar(getc(f));
}
while(!fseek(f,-2L,1));
fclose(f);
getch();
}
| Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
How can you increase the size of a dynamically allocated array?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
Is c easy to learn?
What are the 32 keywords in c?
What is time complexity c?
Why is it that not all header files are declared in every C program?
Explain what is the difference between far and near ?
what value is returned to operating system after program execution?
how could explain about job profile
What is array of pointers to string?
Write a c program to demonstrate character and string constants?
What is a header file?
Explain output of printf("Hello World"-'A'+'B'); ?
How does struct work in c?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?