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
What is the argument of a function in c?
What is extern keyword in c?
Explain c preprocessor?
What is 'bus error'?
What are loops c?
What is array in C
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What is the purpose of the preprocessor directive error?
Where are the auto variables stored?
If errno contains a nonzero number, is there an error?
Explain two-dimensional array.
Differentiate between null and void pointers.
What is the condition that is applied with ?: Operator?
What is a pointer in c plus plus?