write a program in reverse the string without using
pointer,array,global variable declaration,lib fun only using
a function?

Answer Posted / reshma pawar

#include<stdio.h>
void main()
{
int i;
char a[]={"Hello"};
printf("Reverse String is: ");
for(i=4;i>=0;i--)
printf("%c",a[i]);
}

Is This Answer Correct ?    14 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1377


Explain what is dynamic data structure?

866


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4804


What is call by reference in functions?

866


Why is c fast?

786


where are auto variables stored? What are the characteristics of an auto variable?

822


What are the ways to a null pointer can use in c programming language?

850


Where in memory are my variables stored?

826


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

979


What does do in c?

783


How important is structure in life?

776


What are pointers? Why are they used?

832


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

913


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

2074


What is #include stdlib h?

847