How to reverse alternate words in a given line of string
For Eg: my name is narasimha
output : my eman is ahmisaran


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

Post New Answer

More C Interview Questions

design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

0 Answers   TCS,


What is the benefit of using an enum rather than a #define constant?

0 Answers  


What are volatile variables?

1 Answers   Mind Tree,


State the difference between realloc and free.

0 Answers   Aricent,


Explain what is the purpose of "extern" keyword in a function declaration?

0 Answers  






int *a[5] refers to

12 Answers   TCS,


How can I implement a delay, or time a users response, with sub-second resolution?

0 Answers  


When should you use a type cast?

0 Answers  


what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }

4 Answers  


3.write a simple program that will output your name,phone number,e-mail address,and academic major on separate lines 1.create an account and a personal directory for your work b.find out how to create a subdirectory on your system.create one called info c.you will use a text editor to type in your programs and data files.some C systems have a built in text editor;others do not.Find out what text editor you will be using and how to access it.create a text file(not a program) containing your name ,address,and telephone number on separate lines.Next,write the brand of computer you are using and the name of the text editor.Then write a paragraph that describes your past experience with computers.save this file in your info directory. d. find out how to print a file on your system .print out and turn in the file you created in (c).

0 Answers   TCS,


What are the functions to open and close file in c language?

0 Answers  


Is c pass by value or reference?

0 Answers  


Categories