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 does %p mean c?
What is the sizeof () a pointer?
Can the size of an array be declared at runtime?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Explain logical errors? Compare with syntax errors.
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What 'lex' does?
What is an array? What the different types of arrays in c?
What is the use of c language in real life?
What is 'bus error'?
What are the characteristics of arrays in c?
What is pointer & why it is used?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Explain what are bus errors, memory faults, and core dumps?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.