Write the Program to reverse a string using pointers.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?

2 Answers  


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

0 Answers  


What does typeof return in c?

0 Answers  


Write a simple code fragment that will check if a number is positive or negative.

0 Answers  


Explain Function Pointer?

0 Answers   Wipro,






Why pointers are used in c?

0 Answers  


What does 3 mean in texting?

0 Answers  


You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;i<n1-1;i++) { if( !( (a1[i]>a1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

0 Answers   Facebook,


c program to subtract between two numbers without using '-' sign and subtract function.

2 Answers  


How many keywords (reserve words) are in c?

0 Answers  


char ch=10;printf("%d",ch);what is the output

14 Answers   Accenture,


What is scanf_s in c?

0 Answers  


Categories