Write the Program to reverse a string using pointers.
Answer / Satyam Tiwari
"```n#include <stdio.h>nnvoid reverse(char* str)n{n char * start = str;n char * end = str + strlen(str) - 1;nn while (start < end)n {n char temp = *start;n *start = *end;n *end = temp;nn start++;n end--;n }n}nnint main()n{n char str[100];n printf("Enter a string: ");n scanf("%s", &str);n reverse(str);n printf("Reversed string is: %s", str);n return 0;n}n```"
| Is This Answer Correct ? | 0 Yes | 0 No |
Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.
What is wrong with this declaration?
Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.
read an array and search an element
How can you find the day of the week given the date?
What is malloc calloc and realloc in c?
What is c programming structure?
When a c file is executed there are many files that are automatically opened what are they files?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} what would be the output?
How can I call fortran?
write a c program that if the given number is prime, and their rearrangement(permute) of that number is also prime. Ex: Input is "197" is prime Output: 791,917,179 is also prime. Please any one tell me tha code for that
sum of two integers values only other then integer it should print invalid input.