<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7193443141636972330</id><updated>2012-01-29T00:46:30.933+05:30</updated><category term='tell me about yourself sample'/><category term='c strings interview programs'/><category term='How can we hear pdf files'/><category term='why do you want to work in our company'/><category term='general interview questions and answers'/><category term='sort given set of numbers'/><category term='sort array using selection sort'/><category term='are you willing to relocate for work answer'/><category term='interview questions'/><category term='c interview programs'/><category term='Terrorism'/><category term='c program to multiply two matrices'/><category term='cURRICULUM vITAE FOR FRESHERS'/><category term='c program for bubble sorting'/><category term='c.v. resume'/><category term='tips for personality development'/><category term='c program to find transpose of a matrix'/><category term='Sample c program on matrix'/><category term='Top 15 BPOs'/><category term='how long will i live'/><category term='top job search site'/><category term='c program on arrays and strings'/><category term='short term goals career'/><category term='shutdown pc more faster'/><category term='Sun fidelity consultancy vizag'/><category term='Sample c programs On arrays'/><category term='terrorism quotes'/><category term='interview answer'/><category term='factorial using recursion function'/><category term='what salary should i ask for'/><category term='what are some professional goals'/><category term='implement sort'/><category term='cover letter resume'/><category term='do you prefer to work alone or with a group and why'/><category term='interview questions long term goals'/><category term='swap two strings with output'/><category term='binary search using pointers'/><category term='c++'/><category term='do you work well under pressure'/><category term='job interview question- why ECE to IT-answer'/><category term='how to describe yourself in an interview'/><category term='why no work in your subject'/><category term='what are your salary expectations'/><category term='cover letter examples'/><category term='poem on terrorism'/><category term='what do you know about the company'/><category term='what does success mean to u answer'/><category term='do you like working with people'/><category term='c program on pointers'/><category term='basic c++ interview questions and answers'/><category term='data structure interview questions'/><category term='bubble sort using pointers'/><category term='C Questions and Answers'/><category term='merge sort using divide n conquer tactics'/><category term='5 years from now interview question'/><category term='sample c codes'/><category term='why do you want to work with our company'/><category term='faq'/><category term='questions to ask interviewer'/><category term='work under pressure interview'/><category term='interesting facts'/><category term='curriculum vitae format'/><category term='Sample C program code and output'/><category term='pdf'/><category term='team working interview questions'/><category term='long term goals'/><category term='how do you measure success'/><category term='Careers'/><category term='palindrome'/><category term='c array programs'/><category term='bubble sort programs for a number of elements'/><category term='binary search algorithm'/><category term='c program on 2 dim matrix'/><category term='program to implement implement sort'/><category term='Get through GD'/><category term='programs to ask in interviews'/><category term='best top job interview answer'/><category term='C Programs with output'/><category term='structures'/><category term='merge sort'/><category term='interview tips tell me about yourself'/><category term='what salary do you expect'/><category term='cover letters for a job'/><category term='how do you spell criticism'/><category term='program on transpose matrices'/><category term='job cover letters'/><category term='do you prefer to work alone or in a team environment'/><category term='binary search using functions'/><category term='what is your greatest weakness'/><category term='personality development'/><category term='sample c code'/><category term='answers'/><category term='job websites'/><category term='How to succeed in Group Discussion'/><category term='answer to the question why should we hire you'/><category term='B&apos;day'/><category term='c snippets'/><category term='i work well under pressure'/><category term='Pdf can speak'/><category term='B&apos;day is on'/><category term='c program asked in interviews'/><category term='long term job goals'/><category term='cover letter format for resume'/><category term='oops'/><category term='swapping of two strings'/><category term='c programs in interviews'/><category term='c programs for interview'/><category term='oops interview questions answers'/><category term='c++ frequently asked interview questions'/><category term='facts about pdf'/><category term='what sets you apart from other people'/><category term='Unexpected interview questions and answers'/><category term='c program to add two matrix'/><category term='sample programs on pointers'/><category term='c program on selection sort'/><category term='simple c program'/><category term='where do you want to see yourself after 5 years'/><category term='questions to ask at the end of interview'/><category term='c program on strcmp function'/><category term='sample c programs on string'/><category term='examples of short term goals'/><category term='tell me about yourself sample answer'/><category term='jobs in vizag'/><category term='interview c program'/><category term='Rules of G.D'/><category term='interview technical c programs'/><category term='Basics of group Discussion'/><category term='sizeof operator in c'/><category term='c program transpose matrix'/><category term='C Programming Questions and Answers'/><category term='why do you want to leave your current job'/><category term='good questions to ask in interviews'/><category term='display array of strings'/><category term='your long goals'/><category term='what sets you apart from any other applicant'/><category term='sample program on selection sort'/><category term='questions to ask at an interview'/><category term='C++ questions'/><category term='salary expectations question'/><category term='simple pointer program'/><category term='c programs for beginners'/><category term='what do you know about this company'/><category term='how did you opt for the specialization'/><category term='where do you see yourself 5 years from now'/><category term='three things you will need to survive in an island'/><category term='what are your strengths answer'/><category term='what are your strengths'/><category term='salary question interview'/><category term='What have you learnt from your failures'/><category term='online employment sites'/><category term='sort array using binary search'/><category term='free cover letter format'/><category term='OOPs Concepts Interview Questions and Answers'/><category term='c data structures interview questions'/><category term='your short term goals'/><category term='job application format'/><category term='why do you want to join this company'/><category term='c program pointer'/><category term='c code to check string'/><category term='question to ask in interview'/><category term='c program on array of strings'/><category term='define Fool'/><category term='free personality development tips'/><category term='technical interview'/><category term='Valentines day'/><category term='Why should i select u'/><category term='c language interview questions'/><category term='datastructures'/><category term='how do u handle criticism'/><category term='c interview questions'/><category term='long term goal examples'/><category term='lATEST RESUME'/><category term='questions'/><category term='programs based on pointers'/><category term='c frequently asked interview questions'/><category term='sort strings using c program'/><category term='sample c programs'/><category term='faq-c++'/><category term='program to add two matrixs'/><category term='salary expectations what to say'/><category term='why did you choose this career'/><category term='sort array by implement sort'/><category term='c interview question'/><category term='what made you choose your career'/><category term='questions C++'/><category term='C'/><category term='data structure'/><category term='c programs on strings'/><category term='c program to sort arrays'/><category term='what do u expect from the job'/><category term='sample short term goals'/><category term='Mafoi vizag'/><category term='Cover letter format'/><category term='c program to multiply two matrix'/><category term='RESUME FORMAT FOR FRESHERS'/><category term='tough'/><category term='program to sort strings with output'/><category term='tips to personality development'/><category term='I don&apos;t like your face'/><category term='oops interview questions with answers'/><category term='c program to swap'/><category term='interview questions 5 years'/><category term='What&apos;s Your Biggest Weakness'/><category term='c data structures'/><category term='Interesting interview questions'/><category term='fibonacci using recursive function'/><category term='selection sort algorithm'/><category term='sample program on strcpy function'/><category term='Awkward interview questions'/><category term='recursive program using pointers'/><category term='c programs examples'/><category term='c program matrix'/><category term='c program on bubble sort'/><category term='what sets you apart from the crowd'/><category term='Shutdown quickly'/><category term='Jobs in BPO'/><category term='what are your expectations from us and the job'/><category term='why software industry'/><category term='converts an ascii character array to an integer'/><category term='pressure interview questions'/><category term='how do you define success'/><category term='how do you deal with criticism'/><category term='what are your career goals'/><category term='C questions'/><category term='pointers programs'/><category term='terrorism definition'/><category term='technical'/><category term='IT Interview Questions'/><category term='program to sort   c programs asked in interviews with answers'/><category term='c++ interview questions'/><category term='c interview strings'/><category term='Vizag consultancies'/><category term='computer tricks'/><category term='palindrome c rpogram'/><category term='job application cover letter'/><category term='algorithm on merge sort'/><category term='Birthday'/><category term='reasons you left job'/><category term='c programs asked in interviews with answers'/><category term='how mobile are you?'/><category term='c program on merge sort'/><category term='interview tips weaknesses'/><category term='Would you be willing to relocate if required?'/><category term='interview questions and answers why should we hire you'/><category term='answers what are your weakness'/><category term='long term career goals'/><category term='If after sometime you start disliking the job'/><category term='why should we hire you'/><category term='C program On Arrays'/><category term='multiply 2 3*3 matrix'/><category term='use of implement sort'/><category term='program on strings with output'/><category term='sample c program'/><category term='c language interview programs'/><category term='c program to covert string to interger'/><category term='frequently asked c programs'/><category term='what are your short term goals'/><category term='resume format'/><category term='faq-c'/><category term='summation program using recursive function'/><category term='G.D'/><category term='interview why should we hire you'/><category term='example c program'/><category term='are you a team player'/><category term='c programs with solutions'/><category term='what made you choose this career'/><category term='algorithm for bubble sort'/><category term='are you willing to take a risk'/><category term='search for the job'/><category term='Shutdown your laptop faster'/><category term='Mindspace vizag'/><category term='are you ready to relocate'/><category term='sort array using merge sort'/><category term='job interview tell me about yourself answer'/><category term='selection sorting for arrays'/><category term='interview question'/><category term='application cover letter format'/><category term='Why IT'/><category term='what do you know about our company'/><category term='online career portal'/><category term='hr interview questions and answers for experienced candidates'/><category term='resume cover letter'/><category term='c programs on string'/><category term='what do you know about our company interview answer'/><category term='sample program on address pointers'/><category term='c++ sample interview questions'/><category term='are you mobile'/><category term='What risks are u willing to take answer'/><category term='how do you react to criticism'/><category term='c programs questions'/><category term='life calculation'/><category term='career goals 5 years from now'/><category term='program to sort arrays implement sort'/><category term='long term employment goals'/><category term='c sample interview questions'/><category term='what sets you apart from the rest'/><category term='sort strings using merge sort'/><category term='skills for BPO'/><category term='ability to work under pressure'/><category term='What Is a BPO'/><category term='top job search'/><category term='c programs in intreviews'/><category term='choose a major'/><category term='Love n Like'/><category term='data structure interview questions and answers'/><category term='swap two strings'/><category term='why should we hire you best answer'/><category term='common job interview question'/><category term='sample sizeof operator'/><category term='interview c programs'/><category term='resume cover letters'/><category term='What would u do if asked to give bribe'/><category term='questions C'/><category term='are you willing to take  chances'/><category term='divide and conquer'/><category term='strengths and weaknesses'/><category term='Sample C Snippet code on binary search'/><category term='what are your expectations from this job'/><category term='c program arrays'/><category term='Skills Required In BPO'/><category term='program to find transpose of matrix'/><category term='algorithm implement sort'/><category term='weakness interview question'/><category term='Rascal- think something positive about it.'/><category term='program to add multiply matrixs'/><category term='free cover letter sample'/><category term='interview tips'/><category term='how do you spell success'/><category term='NEXT vizag'/><category term='how do you handle stress at work'/><category term='Idiot'/><category term='best interview answer'/><category term='c programs free download'/><category term='c programs on matrices'/><category term='selection sorting using pointers'/><category term='c program on recursion'/><category term='unexpected interview question'/><category term='reasons for changing company'/><category term='What would you do?unexpected interview questions and answers.'/><category term='atoi function'/><category term='do you want join our company'/><category term='If my birthday is on'/><category term='major in english'/><category term='hr questions and answers for interview'/><category term='data'/><category term='What would you want to be? mind of a ceo'/><category term='what is your greatest strength'/><category term='c++ interview questions answers'/><category term='sample interview questions and answers'/><category term='binary search without using functions'/><category term='why do you want to work for this organisation'/><title type='text'>INTERVIEW QUESTIONS WITH ANSWERS.</title><subtitle type='html'>This blog is all about answers to all important interview questions(Both HR &amp;amp; Technical) and simple tacts to succeed in any interview. Here you can share and discuss answers so that visitors can benefit from the contributions.

This blog is dedicated to the KISSSSU community of G.I.E.T, Gunupur. 

Thanks to G. Sunil Kumar, Krishna Kumar Pandey, Indrabijay Narayan, Suchitra Patro, and M.Sunita for their immense support and for being good friends.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default?start-index=101&amp;max-results=100'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>152</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4513245552128112575</id><published>2012-01-30T00:05:00.000+05:30</published><updated>2012-01-04T18:02:40.716+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='interview tips'/><category scheme='http://www.blogger.com/atom/ns#' term='hr questions and answers for interview'/><category scheme='http://www.blogger.com/atom/ns#' term='hr interview questions and answers for experienced candidates'/><category scheme='http://www.blogger.com/atom/ns#' term='sample interview questions and answers'/><category scheme='http://www.blogger.com/atom/ns#' term='general interview questions and answers'/><title type='text'>Sample Job Interview HR Questions With Answers.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Here are some very important &lt;b&gt;HR questions&lt;/b&gt; which are often asked during Interviews and I believe these answers can really help you to get through.......&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Click on them to view the answer:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/hr1-tell-something-about-yourself.html"&gt;&lt;b&gt;1)&amp;nbsp; Tell Me Something About Yourself ?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/hr2-what-are-your-strengths.html"&gt;&lt;b&gt;2) What Are Your Strengths?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/hr3-what-are-your-weakness.html"&gt;&lt;b&gt;3) What Are Your Weaknesses?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/can-you-work-well-under-pressure.html"&gt;&lt;b&gt;4) How Do You Handle Pressure / Can You Work Well Under Pressure?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/what-are-your-short-term-goals.html"&gt;&lt;b&gt;5) What Are Your Short Term Goals?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/hr6-what-are-your-long-term-goals.html"&gt;&lt;b&gt;6) What Are Your Long Term Goals?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/hr7-where-do-you-see-yourself-five.html"&gt;&lt;b&gt;7) Where Do You See&amp;nbsp;After 5 Years?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/hr8-why-should-we-hire-you.html"&gt;8) Why Should We Hire You?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/what-kind-of-salary-are-you-looking-for.html"&gt;&lt;b&gt;9) What Is Your Salary Expectation?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/why-do-you-want-to-leave-your-current.html"&gt;&lt;b&gt;10) Why Do You Want To Leave Your Current Job?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/hr11-do-you-prefer-to-work-alone-or-as.html"&gt;&lt;b&gt;11) Do You Prefer To Work Alone Or As&amp;nbsp;A Team Player?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/what-made-you-choose-your-major.html"&gt;&lt;b&gt;12) What Made You Choose Your Major / Stream?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/why-didnt-you-pursue-career-in-your.html"&gt;&lt;b&gt;13) Why Didn’t You Pursue&amp;nbsp;A Career In Your Major / Stream? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/hr14-why-do-you-want-to-work-for-us.html"&gt;&lt;b&gt;14) Why Do You Want To Work For Us? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/07/hr15-are-you-willing-to-travel.html"&gt;&lt;b&gt;15) Are You Willing To Travel?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;b&gt;&lt;a href="http://uttambpt.blogspot.com/2009/06/hr33-are-you-willing-to-take-risks.html"&gt;16) Are You Willing To Take Risks?&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/08/hr16-what-do-you-know-about-this.html"&gt;&lt;b&gt;17) What Do You Know About This Company?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/08/what-do-you-seek-from-job.html"&gt;&lt;b&gt;18) What Do You Seek From&amp;nbsp;A Job? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/09/hr18-how-do-you-evaluate-success.html"&gt;&lt;b&gt;19) How Do You Evaluate Success? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/09/hr19-during-your-performance-reviews.html"&gt;&lt;b&gt;20) During Your Performance Reviews, What Criticism Do You Hear The Most? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://uttambpt.blogspot.com/2008/09/hr20-is-there-anything-else-that-we.html"&gt;&lt;b&gt;21) Is There Anything Else That We Should Know About You That Would Impact Our Decision? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/09/if-i-tell-you-you-are-idiot-fool-rascal.html"&gt;&lt;b&gt;22) If I Tell You, You Are an IDIOT,&amp;nbsp;a FOOL, a RASCAL; Can You Think Anything Positive About It? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/10/hr22-if-you-were-animal-can-of-soup.html"&gt;&lt;b&gt;23) If You Were an Animal / a Can Of Soup / Some Other Random Object Which One Would You Prefer&amp;nbsp;&amp;amp; Why?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/10/hr23-what-will-you-do-if-you-are-asked.html"&gt;&lt;b&gt;24) What Will You Do If You Are Asked To Give a Bribe? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/10/hr23-what-will-you-do-if-you-are-asked.html"&gt;&lt;b&gt;25) Suppose I Tell You I Don’t Like Your Face? Then Why Should I Select You?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://uttambpt.blogspot.com/2008/10/hr25-if-your-boss-is-taking-all-credits.html"&gt;&lt;b&gt;26) If Your Boss Is Taking All The Credits For Your Work, What Will You Do? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/10/hr25-if-your-boss-is-taking-all-credits.html"&gt;&lt;b&gt;27) Suppose You Find Yourself In a Deserted Island. What Three Things You Will Need To Survive? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/10/hr25-if-your-boss-is-taking-all-credits.html"&gt;&lt;b&gt;28) How Do You Think You Conducted Or Performed During This Interview? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/10/hr25-if-your-boss-is-taking-all-credits.html"&gt;&lt;b&gt;29) How Mobile Are You? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/10/hr29-why-from-ece-to-it-domain.html"&gt;&lt;b&gt;30) Why From ECE To IT Domain?&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://uttambpt.blogspot.com/2008/10/hr29-why-from-ece-to-it-domain.html"&gt;&lt;b&gt;31) If After Sometime You Start Disliking The Job? What Would You Do? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/10/hr29-why-from-ece-to-it-domain.html"&gt;&lt;b&gt;32) What Have You Learnt From Your Failures? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/10/hr29-why-from-ece-to-it-domain.html"&gt;&lt;b&gt;33) Tell Us An Incident Where You Had a Problem With Your Team-Mate. How Did You Handle It? &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;--- &lt;a href="http://uttambpt.blogspot.com/2008/10/questions-you-can-ask-during-hr_27.html"&gt;Questions You Can Ask During Interview.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://uttambpt.blogspot.com/2008/11/resume-format-1.html"&gt;Resume Format.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://uttambpt.blogspot.com/2008/11/curriculum-vitae-chronological-vitae.html"&gt;&lt;b&gt;Curriculum Vitae / Chronological Vitae.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2008/11/cover-letter-job-application.html"&gt;&lt;b&gt;Cover Letter / Job Application Format.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2009/03/cover-letter-2.html"&gt;&lt;b&gt;Cover Letter / Job Application .&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://uttambpt.blogspot.com/2008/12/personality-development.html"&gt;Personality Development.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://uttambpt.blogspot.com/2011/04/best-online-job-portals-and-educational.html"&gt;&lt;b&gt;Best Online Job Portals And Educational Sites For Freshers. &lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;b&gt;SUBMIT YOUR RESUME TODAY: &lt;a href="http://www.s2d6.com/x/?x=c&amp;amp;z=s&amp;amp;v=3306980&amp;amp;k=289238"&gt;Click Here.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Your suggestions and comments are welcome in this section. If you want to share something or if you have some answer of your own, please do post them in the comments section.&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4513245552128112575?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com' title='Sample Job Interview HR Questions With Answers.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4513245552128112575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2008/07/interview-hr-questions.html#comment-form' title='57 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4513245552128112575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4513245552128112575'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2008/07/interview-hr-questions.html' title='Sample Job Interview HR Questions With Answers.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>57</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-7823554693639129001</id><published>2012-01-29T00:46:00.000+05:30</published><updated>2012-01-29T00:46:30.943+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='implement sort'/><category scheme='http://www.blogger.com/atom/ns#' term='program to implement implement sort'/><category scheme='http://www.blogger.com/atom/ns#' term='c program to sort arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='use of implement sort'/><category scheme='http://www.blogger.com/atom/ns#' term='sort array by implement sort'/><category scheme='http://www.blogger.com/atom/ns#' term='program to sort arrays implement sort'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithm implement sort'/><title type='text'>Sample C Program To Implement Quick Sort Using Pointers, Functions &amp; Arrays.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;ALGORITHM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Start the program.&lt;br /&gt;&lt;b&gt;STEP 2: &lt;/b&gt;Assign the pointer array *a[100] as global, Read the value of n.&lt;br /&gt;&lt;b&gt;STEP 3: &lt;/b&gt;Set a for loop to read the elements of array.&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;&lt;b&gt;STEP 4: &lt;/b&gt;Call the function sort(0, n - 1).&lt;br /&gt;&lt;b&gt;STEP 5:&lt;/b&gt; Print the sorted array a.&lt;br /&gt;&lt;b&gt;STEP 6: &lt;/b&gt;Stop the program&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FUNCTION SORT (int first, int last)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1: &lt;/b&gt;Declare the local variable.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Check if first is less than last.&lt;br /&gt;first &amp;lt; last&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;STEP 3: &lt;/b&gt;If so then assign the following&lt;br /&gt;pivot = a[first]&lt;br /&gt;i = first&lt;br /&gt;j = last&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;STEP 4: &lt;/b&gt;Assign a while loop till the condition.&lt;br /&gt;I &amp;lt; j&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 5: &lt;/b&gt;Assign a while loop to increment i till&lt;br /&gt;a[i] &amp;lt; pivot and i &amp;lt; last&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; Assign a while loop to decrement j till&lt;br /&gt;a[j] &amp;gt; pivot and j &amp;gt; first&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;STEP 7:&lt;/b&gt; Check whether i is than j if so then swap the values of a[i] and a[j]&lt;br /&gt;temp = a[i]&lt;br /&gt;a[j] = a[j]&lt;br /&gt;a[j] = temp&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;STEP 8:&lt;/b&gt; Then swap the values of a[j] and a[first].&lt;br /&gt;temp = a[j]&lt;br /&gt;a[j] = a[first]&lt;br /&gt;a[first] =temp&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 9:&lt;/b&gt; Call another functions sort(first,  j - 1) and sort(j + 1, last)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;SAMPLE PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int *a[50], n, i;&lt;br /&gt;void sort(int, int);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;clrscr();&lt;br /&gt;printf(" &lt;b&gt;Enter the no of elements:&lt;/b&gt; ");&lt;br /&gt;scanf(" %d ", &amp;amp;n);&lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;Enter the array elements one by one: &lt;/b&gt;");&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;scanf(" %d ", &amp;amp;a[i]);&lt;br /&gt;&lt;br /&gt;printf(" \n&amp;nbsp;&lt;b&gt;UNSORTED ARRAY ELEMENTS&lt;/b&gt; ");&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;printf(" \t %d ", a[i]);&lt;br /&gt;&lt;br /&gt;sort(0, n - 1);&lt;br /&gt;&lt;br /&gt;printf(" \n&lt;b&gt; SORTED ARRAY&lt;/b&gt; ");&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;printf(" %d ", a[i]);&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;void sort(int first, int last)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int *temp, *pivot, i, j;&lt;br /&gt;&lt;br /&gt;if(first &amp;lt; last)&lt;br /&gt;{&lt;br /&gt;pivot = a[first];&lt;br /&gt;i = first;&lt;br /&gt;j = last;&lt;br /&gt;while(i &amp;lt; j)&lt;br /&gt;{&lt;br /&gt;while((a[i] &amp;lt;= pivot) &amp;amp;&amp;amp; (I &amp;lt; last))&lt;br /&gt;i++;&lt;br /&gt;while((a[j] &amp;gt;= pivot) &amp;amp;&amp;amp; (j &amp;gt; first))&lt;br /&gt;j--;&lt;br /&gt;if(i &amp;lt; j)&lt;br /&gt;{&lt;br /&gt;temp = a[i];&lt;br /&gt;a[i] = a[j];&lt;br /&gt;a[j] = temp;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;temp = a[first];&lt;br /&gt;a[first] = a[j];&lt;br /&gt;a[j] = temp;&lt;br /&gt;&lt;br /&gt;sort( first, j – 1 );&lt;br /&gt;&lt;br /&gt;sort( j + 1, last );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;OUTPUT:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter the number of elements:&lt;/b&gt; 6&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter the array elements one by one &lt;/b&gt;&lt;br /&gt;23&lt;br /&gt;45&lt;br /&gt;89&lt;br /&gt;98&lt;br /&gt;09&lt;br /&gt;65&lt;br /&gt;&lt;br /&gt;&lt;b&gt;UNSORTED ARRAY ELEMENTS&lt;/b&gt; 23 45 89 98 09 65&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SORTED ARRAY&lt;/b&gt; 09 23 45 65 89 98&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-7823554693639129001?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/7823554693639129001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-quick.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7823554693639129001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7823554693639129001'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-quick.html' title='Sample C Program To Implement Quick Sort Using Pointers, Functions &amp; Arrays.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-6195230144177667791</id><published>2012-01-29T00:19:00.000+05:30</published><updated>2012-01-29T00:19:34.286+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='binary search using pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='binary search algorithm'/><category scheme='http://www.blogger.com/atom/ns#' term='binary search without using functions'/><category scheme='http://www.blogger.com/atom/ns#' term='c program to sort arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='sort array using binary search'/><category scheme='http://www.blogger.com/atom/ns#' term='Sample C Snippet code on binary search'/><title type='text'>Sample C Program To Implement Binary Search Without Using Recursive Function.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;ALGORITHM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Start the program.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Read the value of n.&lt;br /&gt;&lt;b&gt;STEP 3: &lt;/b&gt;Set a for loop to read the elements of array.&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;&lt;b&gt;STEP 4:&lt;/b&gt; Set a for loop.&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;&lt;b&gt;STEP 5: &lt;/b&gt;Nest another for loop.&lt;br /&gt;for(j = i + 1; j &amp;lt; n; j++)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; Check the condition a[i] &amp;gt; a[j]&lt;br /&gt;&lt;b&gt;STEP 7:&lt;/b&gt; If so swap the two values using temporary variable t as&lt;br /&gt;t = a[i]&lt;br /&gt;a[i] = a[j]&lt;br /&gt;a[j] = t&lt;br /&gt;&lt;b&gt;STEP 8:&lt;/b&gt; Else go back to step 6.&lt;br /&gt;&lt;b&gt;STEP 9:&lt;/b&gt; Set a for loop to print the value of array a.&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;&lt;b&gt;STEP 10:&lt;/b&gt; Read the search key as k.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 11:&lt;/b&gt; Assign low = 0 and high = n – 1.&lt;br /&gt;&lt;b&gt;STEP 12:&lt;/b&gt; Call the function binsearch(a, k, low, high)&lt;br /&gt;&lt;b&gt;STEP 13: &lt;/b&gt;Check if ans is not equal to 1, if so print the position b + i. else print that element is not found.&lt;br /&gt;&lt;b&gt;STEP 14: &lt;/b&gt;Stop the program.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FUNCTION BINARY SEARCH (int *a[ ], int x, int low, int high)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Check if low &amp;gt; high if so return -1.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Else assign mean value of low and high to mid.&lt;br /&gt;mid = ( high + low ) / 2.&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; Assign the value of a[mid] to p&lt;br /&gt;p = a[mid]&lt;br /&gt;&lt;b&gt;STEP 4: &lt;/b&gt;Check if x == p if so then return mid&lt;br /&gt;&lt;b&gt;STEP 5:&lt;/b&gt; Else check whether x &amp;lt; p if so then return binsearch(a, x, low, mid - 1)&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; Else return binsearch(a, x, mid + 1, high)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;SAMPLE PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;binarysearch(int *[], int, int);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i, j, n, a[10], t, k, b ;&lt;br /&gt;clrscr();&lt;br /&gt;printf(" &lt;b&gt;Enter The number of elements:&lt;/b&gt; ");&lt;br /&gt;scanf(" %d ", &amp;amp;n);&lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;Enter array elements:&lt;/b&gt; \n ");&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;scanf(" %d ", &amp;amp;a[i]);&lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;Sorted  array: &lt;/b&gt;\n ");&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;for(j = i + 1; j &amp;lt; n; j++)&lt;br /&gt;if(a[i] &amp;gt; a[j])&lt;br /&gt;{&lt;br /&gt;t = a[i];&lt;br /&gt;a[i] = a[j];&lt;br /&gt;a[j] = t;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;printf(" %d ", a[i]);&lt;br /&gt;&lt;br /&gt;printf(" \n &lt;b&gt;Enter the element to search:&lt;/b&gt; \n ");&lt;br /&gt;scanf(" %d ", &amp;amp;k);&lt;br /&gt;&lt;br /&gt;b = &lt;b&gt;binarysearch&lt;/b&gt;(&amp;amp;a, n, k);&lt;br /&gt;&lt;br /&gt;if(b !=-1)&lt;br /&gt;printf(" &lt;b&gt;Position:&lt;/b&gt;%d ", b);&lt;br /&gt;else&lt;br /&gt;printf(" &lt;b&gt;Search element not found.&lt;/b&gt;\n ");&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;binarysearch(int *a[],int n,int k)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int mid, low, high, p;&lt;br /&gt;low = 0;&lt;br /&gt;high = n - 1;&lt;br /&gt;&lt;br /&gt;while(low &amp;lt;= high)&lt;br /&gt;{&lt;br /&gt;mid = (low + high) / 2;&lt;br /&gt;p = a[mid];&lt;br /&gt;&lt;br /&gt;if(p &amp;gt; k)&lt;br /&gt;high = mid - 1;&lt;br /&gt;else if(p &amp;lt; k)&lt;br /&gt;low = mid + 1;&lt;br /&gt;else if(k == p)&lt;br /&gt;&lt;br /&gt;return mid;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;return-1;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;OUTPUT:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enter the number of elements: 6&lt;br /&gt;Enter the array elements  &lt;br /&gt;23&lt;br /&gt;45&lt;br /&gt;89&lt;br /&gt;98&lt;br /&gt;09&lt;br /&gt;65&lt;br /&gt;&lt;br /&gt;Sorted array 09 23 45 65 89 98&lt;br /&gt;&lt;br /&gt;Enter the element to search: 23&lt;br /&gt;Position: 2&lt;br /&gt;Enter the element to search: 50&lt;br /&gt;The number is not present in the list.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-6195230144177667791?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/6195230144177667791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-binary_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6195230144177667791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6195230144177667791'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-binary_29.html' title='Sample C Program To Implement Binary Search Without Using Recursive Function.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-362078856587452574</id><published>2012-01-28T18:16:00.000+05:30</published><updated>2012-01-28T18:16:32.204+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='binary search using pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='binary search algorithm'/><category scheme='http://www.blogger.com/atom/ns#' term='c program to sort arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='sort array using binary search'/><category scheme='http://www.blogger.com/atom/ns#' term='binary search using functions'/><category scheme='http://www.blogger.com/atom/ns#' term='Sample C Snippet code on binary search'/><title type='text'>Sample C Program To Implement Binary Search Using Recursive Function.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;ALGORITHM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1: &lt;/b&gt;Start the program.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Read the value of n.&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; Set a for loop to read the elements of array.&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;&lt;b&gt;STEP 4:&lt;/b&gt; Set a for loop.&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;&lt;b&gt;STEP 5: &lt;/b&gt;Nest another for loop.&lt;br /&gt;for(j = i + 1; j &amp;lt; n; j++)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; Check the condition a[i] &amp;gt; a[j].&lt;br /&gt;&lt;b&gt;STEP 7: &lt;/b&gt;If so swap the two values using temporary variable t as&lt;br /&gt;t = a[i]&lt;br /&gt;a[i] = a[j]&lt;br /&gt;a[j] = t&lt;br /&gt;&lt;b&gt;STEP 8:&lt;/b&gt; Else go back to step 6.&lt;br /&gt;&lt;b&gt;STEP 9:&lt;/b&gt; Set a for loop to print the value of array a.&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;&lt;b&gt;STEP 10: &lt;/b&gt;Read the search key as k.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 11:&lt;/b&gt; Assign low = 0 and high = n – 1.&lt;br /&gt;&lt;b&gt;STEP 12:&lt;/b&gt; Call the function binsearch(a, k, low, high)&lt;br /&gt;&lt;b&gt;STEP 13: &lt;/b&gt;Check if ans is not equal to 1, if so print the position b + i. Else print that element is not found.&lt;br /&gt;&lt;b&gt;STEP 14:&lt;/b&gt; Stop the program.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FUNCTION BINARY SEARCH (int *x[ ], int x, int low, int high)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Set a while loop till low is greater than high.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Assign mean value of low and high to mid.&lt;br /&gt;mid = (high + low) / 2&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; Assign the value of x[mid] to p.&lt;br /&gt;p = x[mid]&lt;br /&gt;&lt;b&gt;STEP 4:&lt;/b&gt; Check if x &amp;lt; p if so assign.&lt;br /&gt;high = mid - 1&lt;br /&gt;&lt;b&gt;STEP 5:&lt;/b&gt; Else check whether x &amp;gt; p if so then assign.&lt;br /&gt;low = mid + 1&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; Else check whether x == p, if so return mid.&lt;br /&gt;&lt;b&gt;STEP 7:&lt;/b&gt; Else return -1.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;SAMPLE PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;binarysearch&lt;/b&gt;(int *[], int, int, int);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i, j, k, t, low, high, n, a[50], ans;&lt;br /&gt;clrscr();&lt;br /&gt;&lt;br /&gt;printf(" \n &lt;b&gt;Enter the number of elements:&lt;/b&gt; ");&lt;br /&gt;scanf(" %d ", &amp;amp;n);&lt;br /&gt;&lt;br /&gt;printf(" \n &lt;b&gt;Enter the array element one by one &lt;/b&gt;\n ");&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;scanf(" %d ", &amp;amp;a[i]);&lt;br /&gt;&lt;br /&gt;printf(" \n &lt;b&gt;Sorted array&lt;/b&gt; \n ");&lt;br /&gt;&lt;br /&gt;for(Ii= 0; i &amp;lt; n; i++)&lt;br /&gt;for(j = I + 1; j &amp;lt; n; j++)&lt;br /&gt;if(a[i] &amp;gt; a[j])&lt;br /&gt;{ &lt;br /&gt;t = a[i];&lt;br /&gt;a[i] = a[j];&lt;br /&gt;a[j] = t;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;for(i =0; i &amp;lt; n; i++)&lt;br /&gt;printf(" \t a[%d] = %d \n ", i, a[i]);&lt;br /&gt;&lt;br /&gt;printf("\t &lt;b&gt;Enter the element to search:&lt;/b&gt;");&lt;br /&gt;scanf("%d",&amp;amp;k);&lt;br /&gt;&lt;br /&gt;low = 0;&lt;br /&gt;high = n - 1;&lt;br /&gt;&lt;br /&gt;ans = &lt;b&gt;binarysearch&lt;/b&gt;(a, k, low, high);&lt;br /&gt;&lt;br /&gt;if(ans !=-1)&lt;br /&gt;printf(" \n &lt;b&gt;The number %d is present in the list at location&lt;/b&gt; %d. ", k, ans);&lt;br /&gt;else&lt;br /&gt;printf(" &lt;b&gt;The number is not present in the list.&lt;/b&gt; ");&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int &lt;b&gt;binarysearch&lt;/b&gt;(int *a[], int x, int low, int high)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int mid, p;&lt;br /&gt;&lt;br /&gt;if(low &amp;gt; high)&lt;br /&gt;return-1;&lt;br /&gt;&lt;br /&gt;mid = (low + high) / 2;&lt;br /&gt;p = a[mid];&lt;br /&gt;&lt;br /&gt;if(x == p)&lt;br /&gt;return(mid);&lt;br /&gt;else if(x &amp;lt; p)&lt;br /&gt;return &lt;b&gt;binarysearch&lt;/b&gt;(a, x, low, mid - 1);&lt;br /&gt;else&lt;br /&gt;return &lt;b&gt;binarysearch&lt;/b&gt;(a, x, mid + 1, high);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;OUTPUT:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enter the number of elements:&amp;nbsp;6&lt;br /&gt;Enter the array elements one by one&lt;br /&gt;23&lt;br /&gt;45&lt;br /&gt;89&lt;br /&gt;98&lt;br /&gt;09&lt;br /&gt;65&lt;br /&gt;&lt;br /&gt;Sorted Array 09 23 45 65 89 98&lt;br /&gt;&lt;br /&gt;Enter the element to search 23.&lt;br /&gt;The number 23 is present in the list at location 2.&lt;br /&gt;&lt;br /&gt;Enter the element to search 50.&lt;br /&gt;The number is not present in the list.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-362078856587452574?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/362078856587452574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-binary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/362078856587452574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/362078856587452574'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-binary.html' title='Sample C Program To Implement Binary Search Using Recursive Function.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4807683756454536446</id><published>2012-01-27T21:59:00.001+05:30</published><updated>2012-01-27T21:59:35.948+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sort strings using merge sort'/><category scheme='http://www.blogger.com/atom/ns#' term='divide and conquer'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithm on merge sort'/><category scheme='http://www.blogger.com/atom/ns#' term='sort array using merge sort'/><category scheme='http://www.blogger.com/atom/ns#' term='merge sort using divide n conquer tactics'/><category scheme='http://www.blogger.com/atom/ns#' term='merge sort'/><category scheme='http://www.blogger.com/atom/ns#' term='c program on merge sort'/><title type='text'>Sample C Program To Implement Merge Sort Using Divide &amp; Conquer Strategy.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;ALGORITHM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1: &lt;/b&gt;Start the program.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Read the value of n.&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; Set a for loop to read the elements of array.&lt;br /&gt;for (i = 0; i &amp;lt; n; i++)&lt;br /&gt;&lt;b&gt;STEP 4:&lt;/b&gt; Call the function split ( a, 0, n – 1 )&lt;br /&gt;&lt;b&gt;STEP 5:&lt;/b&gt; Print the sorted array a.&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; Stop the program.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FUNCTION MERGE_SORT (int *a, int low,  int high)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1: &lt;/b&gt;Declare the local variable.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; If low is less than high then assign the mean value of low and high to mid.&lt;br /&gt;mid = ( low + high ) / 2&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; Call the function merge_sort ( a, low, mid ).&lt;br /&gt;&lt;b&gt;STEP 4: &lt;/b&gt;Call the another function merge_sort ( a, mid + 1, high ).&lt;br /&gt;&lt;b&gt;STEP 5:&lt;/b&gt; Call the function combine ( a, low, mid, high ).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FUNCTION SPLIT(int *c, int first,  int last)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Declare the local variables.&lt;br /&gt;&lt;b&gt;STEP 2: &lt;/b&gt;Set the while loop till the condition i &amp;lt;= mid &amp;amp;&amp;amp; j &amp;lt;= high is failed.&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; Check whether a[i] &amp;lt; a[j]&lt;br /&gt;&lt;b&gt;STEP 4:&lt;/b&gt; If so the assign the value of a[j] to temp[k] and increment j and k&lt;br /&gt;temp[k] = a[i]&lt;br /&gt;j++  &lt;br /&gt;k++&lt;br /&gt;&lt;b&gt;STEP 5:&lt;/b&gt; Else assign a[j] to temp[k] and then increment j and k&lt;br /&gt;temp[k]=a[j] &lt;br /&gt;j++ &lt;br /&gt;k++&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; Set another while loop till i is less than mid.&lt;br /&gt;&lt;b&gt;STEP 7: &lt;/b&gt;Assign the value of a[i] to temp[k]&lt;br /&gt;temp[k] = a[i]  &lt;br /&gt;j++ &lt;br /&gt;k++&lt;br /&gt;&lt;b&gt;STEP 8: &lt;/b&gt;Set another while loop till j is greater than mid.&lt;br /&gt;&lt;b&gt;STEP 9:&lt;/b&gt; Assign the value of a[j] to temp[k]&lt;br /&gt;temp[k] = a[j]&lt;br /&gt;j++  &lt;br /&gt;k++&lt;br /&gt;&lt;b&gt;STEP 10:&lt;/b&gt; Construct a for loop for k.&lt;br /&gt;for(k = low; k &amp;lt;= high; k++)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 11: &lt;/b&gt;Assign the value of temp[k] to a[k].&lt;br /&gt;a[k] = temp[k]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;SAMPLE PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void split(int *, int, int);&lt;br /&gt;void merge(int *, int, int, int, int);&lt;br /&gt;int a[25], b[25];&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i, n;&lt;br /&gt;clrscr();&lt;br /&gt;printf(" &lt;b&gt;Enter the limit&lt;/b&gt; ");&lt;br /&gt;scanf(" %d ", &amp;amp;n);&lt;br /&gt;&lt;br /&gt;printf(" \n &lt;b&gt;Enter the elements&lt;/b&gt; ");&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;scanf(" %d ", &amp;amp;a[i]);&lt;br /&gt;&lt;br /&gt;split(a, 0, n – 1 );&lt;br /&gt;printf("\n &lt;b&gt;The sorted list is&lt;/b&gt;: ");&lt;br /&gt;&lt;br /&gt;for(i = 0 ;i &amp;lt; n; i++)&lt;br /&gt;printf(" \n %d ", a[i]);&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;void split(int *c, int first, int last)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int mid;&lt;br /&gt;if(first &amp;lt; last)&lt;br /&gt;{&lt;br /&gt;mid = ( first + last ) / 2;&lt;br /&gt;&lt;br /&gt;split(c, first, mid);&lt;br /&gt;split(c, mid+1, last);&lt;br /&gt;&lt;br /&gt;&lt;b&gt;merge(c, first, mid, mid + 1, last);&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;void merge(int *a, int f1, int l1, int f2, intl2)&lt;/b&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i, j, k = 0;&lt;br /&gt;i = f1;&lt;br /&gt;j = f2;&lt;br /&gt;while(i &amp;lt;= l1&amp;amp;&amp;amp; j &amp;lt;= l2)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;if(a[i] &amp;lt; a[j])&lt;br /&gt;b[k] = a[i++];&lt;br /&gt;else&lt;br /&gt;b[k] = a[j++];&lt;br /&gt;&lt;br /&gt;k++;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;while(i &amp;lt;= l1)&lt;br /&gt;b[k++] = a[i++];&lt;br /&gt;&lt;br /&gt;while(j &amp;lt;= l2)&lt;br /&gt;i = f1;&lt;br /&gt;&lt;br /&gt;j = 0;&lt;br /&gt;&lt;br /&gt;while(i &amp;lt;= l2 &amp;amp;&amp;amp; j &amp;lt; k)&lt;br /&gt;a[i++] = b[j++]&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;OUTPUT:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the limit: 6&lt;br /&gt;Enter the elements  &lt;br /&gt;23&lt;br /&gt;45&lt;br /&gt;89&lt;br /&gt;98&lt;br /&gt;09&lt;br /&gt;65&lt;br /&gt;&lt;b&gt;The Sorted List&lt;/b&gt;&amp;nbsp;is: 09 23 45 65 89 98&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4807683756454536446?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4807683756454536446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-merge.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4807683756454536446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4807683756454536446'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-merge.html' title='Sample C Program To Implement Merge Sort Using Divide &amp; Conquer Strategy.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-725113146533199647</id><published>2012-01-04T19:47:00.003+05:30</published><updated>2012-01-12T13:55:19.803+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='selection sorting using pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='sort array using selection sort'/><category scheme='http://www.blogger.com/atom/ns#' term='selection sort algorithm'/><category scheme='http://www.blogger.com/atom/ns#' term='sample program on selection sort'/><category scheme='http://www.blogger.com/atom/ns#' term='selection sorting for arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='c program on selection sort'/><title type='text'>Sample C Program To Implement Selection Sort Using Pointers, Arrays &amp; Functions.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;ALGORITHM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Start the program.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Read the value of n.&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; Set a for loop to read the elements of array&lt;br /&gt;for( i = 0; i &amp;lt; n; i++ )&lt;br /&gt;&lt;b&gt;STEP 4:&lt;/b&gt; Call the function sel (a, 0, n – 1 )&lt;br /&gt;&lt;b&gt;STEP 5:&lt;/b&gt; Print the sorted array a.&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; Stop the program.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FUNCTION SEL (int *x, int start, int stop )&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Declare the local variable.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Assign begin = start and small = begin and check if&lt;br /&gt;start &amp;lt; stop.&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; If so then  set a for loop&lt;br /&gt;for(i = begin + 1 ; i &amp;lt;= stop; i++ )&lt;br /&gt;&lt;b&gt;STEP 4:&lt;/b&gt; Check the condition&lt;br /&gt;x[i] &amp;lt; x[small]&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; If so then assign the value of i to small&lt;br /&gt;small = i&lt;br /&gt;&lt;b&gt;STEP 7:&lt;/b&gt; Then swap the values of x[begin] and x[small] using temp&lt;br /&gt;temp = x[begin]&lt;br /&gt;x[begin] = x[small]&lt;br /&gt;x[small] = temp&lt;br /&gt;&lt;b&gt;STEP 8:&lt;/b&gt; Call another function sel ( x, start + 1, stop )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;SAMPLE PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void sel(int *[],int,int);&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int a[100], i, n;&lt;br /&gt;clrscr();&lt;br /&gt;&lt;br /&gt;printf(" \n&lt;b&gt; Enter the number of elements:&lt;/b&gt; " );&lt;br /&gt;scanf(" %d ", &amp;amp;n);&lt;br /&gt;printf(" \n &lt;b&gt;Enter the array elements one by one&lt;/b&gt; \n ");&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;scanf(" %d ", &amp;amp;a[i]);&lt;br /&gt;&lt;br /&gt;printf("\n&lt;b&gt;UNSORTED ARRAY ELEMENTS&lt;/b&gt;");&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;printf(" \t %d ", a[i]);&lt;br /&gt;&lt;br /&gt;sel( a, 0, n – 1 );&lt;br /&gt;printf(" &lt;b&gt;SORTED ARRAY:&lt;/b&gt; \n ");&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)&lt;br /&gt;printf(" \t %d ", a[i]);&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;return(0);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;void sel(int *x[], int start, int stop)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int begin = start;&lt;br /&gt;int small = begin;&lt;br /&gt;int temp, i;&lt;br /&gt;&lt;br /&gt;if(start &amp;lt; stop)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; for(i = begin + 1; i &amp;lt;= stop; i++)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( x[i] &amp;lt; x[small] )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; small = i;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; temp = x[begin];&lt;br /&gt;&amp;nbsp; &amp;nbsp; x[begin] = x[small];&lt;br /&gt;&amp;nbsp; &amp;nbsp; x[small] = temp;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; sel(x, start + 1, stop);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;OUTPUT:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enter the number of elements: 6&lt;br /&gt;Enter the array elements one by one&lt;br /&gt;23&lt;br /&gt;45&lt;br /&gt;89&lt;br /&gt;98&lt;br /&gt;09&lt;br /&gt;65&lt;br /&gt;&lt;br /&gt;UNSORTED ARRAY ELEMENTS&lt;br /&gt;23&lt;br /&gt;45&lt;br /&gt;89&lt;br /&gt;98&lt;br /&gt;09&lt;br /&gt;65&lt;br /&gt;&lt;br /&gt;SORTED ARRAY&lt;br /&gt;09&lt;br /&gt;23&lt;br /&gt;45&lt;br /&gt;65&lt;br /&gt;89&lt;br /&gt;98&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-recursive.html" target="_blank"&gt;Sample C Program To Implement Recursive Algorithm Using Pointers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2012/01/sample-c-program-with-algorithm-to.html" target="_blank"&gt;Sample C Program With Algorithm To Implement Bubble Sort Using Pointers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-use-of-array.html" target="_blank"&gt;Sample C Program On Use Of Array &amp;amp; Pointer Concept Together.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-pointers-2.html" target="_blank"&gt;Sample C Program On Pointers &amp;amp; 2 - Dimensional Array.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-program-on-strings-into-array-of.html" target="_blank"&gt;Sample C Program On Strings Into Array Of Pointers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-accept-add-ten.html" target="_blank"&gt;Sample C Program To Accept &amp;amp; Add Ten Numbers Using Pointers.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-725113146533199647?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/725113146533199647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-selection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/725113146533199647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/725113146533199647'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-selection.html' title='Sample C Program To Implement Selection Sort Using Pointers, Arrays &amp; Functions.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4236335973797317110</id><published>2012-01-04T18:23:00.002+05:30</published><updated>2012-01-04T20:03:45.303+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c program on bubble sort'/><category scheme='http://www.blogger.com/atom/ns#' term='c program for bubble sorting'/><category scheme='http://www.blogger.com/atom/ns#' term='bubble sort using pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithm for bubble sort'/><category scheme='http://www.blogger.com/atom/ns#' term='bubble sort programs for a number of elements'/><title type='text'>Sample C Program With Algorithm To Implement Bubble Sort Using Pointers.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;ALGOTITHM&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Start the program.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Read the value of n.&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; Set for loop to read the elements of array for( i = 0; i &amp;lt; n; i++ ).&lt;br /&gt;&lt;b&gt;STEP 4:&lt;/b&gt; Call the function bubblesort ( a , n ).&lt;br /&gt;&lt;b&gt;STEP 5:&lt;/b&gt; Print the sorted array a.&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; Stop the program.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FUNCTION BUBBBLESORT ( int *b [], int n )&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Declare the local variable.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Set a for loop for( i = 0; i &amp;lt; n; i++ )&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; Nest another for loop for( j = 1; j &amp;lt; n; j++ )&lt;br /&gt;&lt;b&gt;STEP 4:&lt;/b&gt; Check the condition b[i] &amp;gt; b[j]&lt;br /&gt;&lt;b&gt;STEP 5:&lt;/b&gt; If so swap the two values using temporary y variable t as&lt;br /&gt;t = a[i]&lt;br /&gt;b[i] = b[j]&lt;br /&gt;b[j] = t&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; Else go back to step3.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;SAMPLE PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void bubblesort( int *[], int);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i, n, a[100];&lt;br /&gt;clrscr();&lt;br /&gt;&lt;br /&gt;printf( " \n &lt;b&gt;Enter the number of elements:&lt;/b&gt; " );&lt;br /&gt;scanf( " %d ", &amp;amp;n );&lt;br /&gt;&lt;br /&gt;printf( " \n &lt;b&gt;Enter the array elements&lt;/b&gt; " );&lt;br /&gt;for( i = 0; i &amp;lt; n; i++) &lt;br /&gt;scanf( " %d ", &amp;amp;a[i] );  &lt;br /&gt;&lt;br /&gt;printf( " \n &lt;b&gt;UNSORTED ARRAY ELEMENTS&lt;/b&gt; " ); &lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++ ) &lt;br /&gt;printf( " \t %d ", a[i] );  &lt;br /&gt;&lt;br /&gt;bubblesort( a, n ); &lt;br /&gt;printf( " \n &lt;b&gt;SORTED ARRAY&lt;/b&gt; ");  &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; n; i++) &lt;br /&gt;printf( " \t %d ", *(a + i) ); &lt;br /&gt;&lt;br /&gt;getch();  &lt;br /&gt;&lt;br /&gt;}   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;void bubblesort(int* b[],int n) &lt;br /&gt;{  &lt;br /&gt;&lt;br /&gt;int i, j, t; &lt;br /&gt;for( i = 0; i &amp;lt; n; i++ ) &lt;br /&gt;&amp;nbsp; { &lt;br /&gt;&amp;nbsp; for( j = i + 1; j &amp;lt; n; j++ ) &lt;br /&gt;&amp;nbsp; &amp;nbsp; { &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if( b[i] &amp;gt; b[j] )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t = b[i];&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b[i] = b[j];&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b[j] = t;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;OUTPUT:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enter the number of elements: 6&lt;br /&gt;Enter the array elements 34&lt;br /&gt;32&lt;br /&gt;12&lt;br /&gt;456&lt;br /&gt;43&lt;br /&gt;56&lt;br /&gt;UNSORTED ARRAY ELEMENTS 34 32 12 456 43 56&lt;br /&gt;SORTED ARRAY 12 32 34 43 56 456&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-recursive.html" target="_blank"&gt;Sample C Program To Implement Recursive Algorithm Using Pointers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-selection.html" target="_blank"&gt;Sample C Program To Implement Selection Sort Using Pointers, Arrays &amp;amp; Functions.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-use-of-array.html" target="_blank"&gt;Sample C Program On Use Of Array &amp;amp; Pointer Concept Together.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-pointers-2.html" target="_blank"&gt;Sample C Program On Pointers &amp;amp; 2 - Dimensional Array.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-program-on-strings-into-array-of.html" target="_blank"&gt;Sample C Program On Strings Into Array Of Pointers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-accept-add-ten.html" target="_blank"&gt;Sample C Program To Accept &amp;amp; Add Ten Numbers Using Pointers.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4236335973797317110?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4236335973797317110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-with-algorithm-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4236335973797317110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4236335973797317110'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-with-algorithm-to.html' title='Sample C Program With Algorithm To Implement Bubble Sort Using Pointers.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-5838402365434560845</id><published>2012-01-04T17:55:00.001+05:30</published><updated>2012-01-04T20:06:03.770+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='factorial using recursion function'/><category scheme='http://www.blogger.com/atom/ns#' term='summation program using recursive function'/><category scheme='http://www.blogger.com/atom/ns#' term='recursive program using pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='fibonacci using recursive function'/><category scheme='http://www.blogger.com/atom/ns#' term='c program on recursion'/><title type='text'>Sample C Program To Implement Recursive Algorithm Using Pointers.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;ALGORITHM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Start the program.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Declare the variable, *no, factorial, sum, p, i, and the function fact (int p), sum (int p), fib (int p).&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; Read the value of no.&lt;br /&gt;&lt;b&gt;STEP 4:&lt;/b&gt; Call the function fact (*no), sum (*no).&lt;br /&gt;&lt;b&gt;STEP 5:&lt;/b&gt; Use for loop call the function fib (int p) and display the Fibonacci series &amp;amp; also display factorial &amp;amp; summation.&lt;br /&gt;&lt;b&gt;STEP 6:&lt;/b&gt; Stop the program.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FUNCTION FIB (int p) - FIBONACCI SERIES.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Check whether the value of n is equal to '0' if so return '0'.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Else check whether (p &amp;gt;= 1 &amp;amp;&amp;amp; p &amp;lt;= 2), if so return the value '1'.&lt;br /&gt;&lt;b&gt;STEP 3:&lt;/b&gt; Else return ( fib ( p – 1 ) + fib( p – 2 ) ).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FUNCTION FACT (int p) - FACTORIAL OF A NUMBER.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Check whether (p == 0), if so return '1' .&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Else return (p * fact( p – 1 ) ).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FUNCTION SUM (int p) - SUMMATION OF A NUMBER.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STEP 1:&lt;/b&gt; Check whether p == 0, if so return '0'.&lt;br /&gt;&lt;b&gt;STEP 2:&lt;/b&gt; Else return (p + sum( p – 1 ) ).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;SAMPLE  PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i, p,  *no, factorial, umm;&lt;br /&gt;int fact (int p);&lt;br /&gt;int sum (int p);&lt;br /&gt;int fib (int p);&lt;br /&gt;&lt;br /&gt;clrscr();&lt;br /&gt;printf( " \n Enter The Number: " );&lt;br /&gt;scanf( " %d ", no );&lt;br /&gt;&lt;br /&gt;printf( " \n The Fibonnacci series: \n " );&lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; *no; i++ ) &lt;br /&gt;&amp;nbsp; &amp;nbsp; printf( " %d \n ", fib( i ) );  &lt;br /&gt;&lt;br /&gt;factorial = fact ( * no ); &lt;br /&gt;printf( " \n The factorial of %d: %d \n ",  *no, factorial );  &lt;br /&gt;&lt;br /&gt;summ = sum ( *no ); &lt;br /&gt;printf( " \nThe summation of %d: %d \n ",  *no, sum ); &lt;br /&gt;getch();  &lt;br /&gt;&lt;br /&gt;}   &lt;br /&gt;&lt;br /&gt;int fib(int p) &lt;br /&gt;{  &lt;br /&gt;&lt;br /&gt;if( p == 0 )&lt;br /&gt;&amp;nbsp; &amp;nbsp;return(0);&lt;br /&gt;if( p &amp;gt;= 1 &amp;amp;&amp;amp; p &amp;lt;= 2 )&lt;br /&gt;&amp;nbsp; &amp;nbsp;return(1);&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; &amp;nbsp;return( fib( p – 1 ) + fib( p – 2 ) );&lt;br /&gt;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&lt;br /&gt;int fact( int p )&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;if( p == 0 )&lt;br /&gt;&amp;nbsp; &amp;nbsp;return(1);&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; &amp;nbsp;return( p * fact( p – 1 ) );&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int sum(int p)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;if( p == 0 )&lt;br /&gt;&amp;nbsp; &amp;nbsp;return(0);&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; &amp;nbsp;return( p + sum( p – 1 ) );&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;OUTPUT:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enter the Number: 5&lt;br /&gt;The Fibonacci series: 0 1 1 2 3&lt;br /&gt;The factorial of 5: 120&lt;br /&gt;The summation of 5: 15&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2012/01/sample-c-program-with-algorithm-to.html" target="_blank"&gt;Sample C Program With Algorithm To Implement Bubble Sort Using Pointers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-selection.html" target="_blank"&gt;Sample C Program To Implement Selection Sort Using Pointers, Arrays &amp;amp; Functions.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-use-of-array.html" target="_blank"&gt;Sample C Program On Use Of Array &amp;amp; Pointer Concept Together.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-pointers-2.html" target="_blank"&gt;Sample C Program On Pointers &amp;amp; 2 - Dimensional Array.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-program-on-strings-into-array-of.html" target="_blank"&gt;Sample C Program On Strings Into Array Of Pointers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-accept-add-ten.html" target="_blank"&gt;Sample C Program To Accept &amp;amp; Add Ten Numbers Using Pointers.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-5838402365434560845?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/5838402365434560845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-recursive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5838402365434560845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5838402365434560845'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2012/01/sample-c-program-to-implement-recursive.html' title='Sample C Program To Implement Recursive Algorithm Using Pointers.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-8373117703857125012</id><published>2011-12-25T13:10:00.000+05:30</published><updated>2011-12-25T13:10:59.323+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Find Out The No. Of Times A Character Is Present In The String.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;This is a Sample C Program To Accept A String &amp;amp; Find Out Whether This Character Is Present In The String. &lt;br /&gt;&lt;br /&gt;If Present Then Display How Many Times This Character Occurs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void s(char *p,char hc);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str[10];&lt;br /&gt;char ch;&lt;br /&gt;clrscr();&lt;br /&gt;&lt;br /&gt;printf(" \n \n &lt;b&gt;Enter the string:&lt;/b&gt; \t ");&lt;br /&gt;gets(str);&lt;br /&gt;&lt;br /&gt;printf(" \n \n &lt;b&gt;Enter the character:&lt;/b&gt; \t ");&lt;br /&gt;scanf("%c",&amp;amp;ch);&lt;br /&gt;s(str,ch);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void s(char *p,char hc)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int a = 0;&lt;br /&gt;int i,l;&lt;br /&gt;l = strlen(p);&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; l; i++)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if ( p[i] == hc)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a++;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;continue;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;printf(" \n \n &lt;b&gt;The Entered Character occurs %d times.&lt;/b&gt; ", a);&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OUTPUT:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the string: Googleplus&lt;br /&gt;Enter the character: l&lt;br /&gt;The Entered Character occurs 2 times.     &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string-find.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Find Out Whether This Character Is Present In The String.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_25.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display It's Substring.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_8470.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display It's Alternate Characters In Reverse.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-two-strings.html" target="_blank"&gt;Sample C Program To Accept Two Strings &amp;amp; Display The Largest String.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_2473.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display Vowels.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_139.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display Number Of Vowels.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_7331.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display Number Of Each Vowels.&lt;/a&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-8373117703857125012?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/8373117703857125012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-find-out-no-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8373117703857125012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8373117703857125012'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-find-out-no-of.html' title='Sample C Program To Find Out The No. Of Times A Character Is Present In The String.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-8026244315575436090</id><published>2011-12-25T13:03:00.000+05:30</published><updated>2011-12-25T13:03:11.096+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept A String &amp; Find Out Whether This Character Is Present In The String.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void s(char *p,char hc);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str[10];&lt;br /&gt;char ch;&lt;br /&gt;&lt;br /&gt;clrscr();&lt;br /&gt;printf(" \n \n&lt;b&gt; Enter the string: &lt;/b&gt;\t ");&lt;br /&gt;&lt;br /&gt;gets(str);&lt;br /&gt;printf(" \n \n &lt;b&gt;Enter the character: &lt;/b&gt;\t ");&lt;br /&gt;&lt;br /&gt;scanf("%c",&amp;amp;ch);&lt;br /&gt;s(str, ch);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void s(char *p,char hc)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int a;&lt;br /&gt;int i,l;&lt;br /&gt;&lt;br /&gt;l = strlen(p);&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; l; i++)&lt;br /&gt;{&lt;br /&gt;if(p[i] == hc)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;continue;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if(a &amp;gt;= 1)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" \n \n &lt;b&gt;Yes, the entered character is present in the string. &lt;/b&gt;");&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" \n \n&lt;b&gt; No, the entered character is not present in the string.&lt;/b&gt; ");&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OUTPUT:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the string: Malayalam&lt;br /&gt;Enter the character: z&lt;br /&gt;No, the entered character is not present in the string.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_25.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display It's Substring.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_8470.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display It's Alternate Characters In Reverse.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-two-strings.html" target="_blank"&gt;Sample C Program To Accept Two Strings &amp;amp; Display The Largest String.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_2473.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display Vowels.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_139.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display Number Of Vowels.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_7331.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display Number Of Each Vowels.&lt;/a&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-8026244315575436090?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/8026244315575436090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string-find.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8026244315575436090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8026244315575436090'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string-find.html' title='Sample C Program To Accept A String &amp; Find Out Whether This Character Is Present In The String.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-2780175053857844869</id><published>2011-12-25T12:57:00.000+05:30</published><updated>2011-12-25T12:57:12.205+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept A String &amp; Display Number Of Each Vowels.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;char vowels(char *p);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str[10];&lt;br /&gt;clrscr();&lt;br /&gt;&lt;br /&gt;printf(" \n \n&lt;b&gt; Enter the string:&lt;/b&gt; \t ");&lt;br /&gt;gets(str);&lt;br /&gt;&lt;br /&gt;vowels(str);&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;char vowels(char *p)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i, l, v1 = 0, v2 = 0, v3 = 0, v4 = 0, v5 = 0, v6 = 0, v7 = 0, v8 = 0, v9 = 0, v10 = 0;&lt;br /&gt;l = strlen(p);&lt;br /&gt;&lt;br /&gt;printf(" \n \n &lt;b&gt;The number of vowels in the string is: &lt;/b&gt;\t ");&lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; l; i++ )&lt;br /&gt;{&lt;br /&gt;if ( p[i] == 'a' )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v1++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;if ( p[i] == 'e' )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v2++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;if ( p[i] == 'i' )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v3++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;if ( p[i] == 'o' )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v4++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;if ( p[i] == 'u' )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v5++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;if ( p[i] == 'A' )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v6++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;if ( p[i] == 'E' )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v7++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;if ( p[i] == 'I' )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v8++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;if ( p[i] == 'O' )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v9++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;if ( p[i] == 'U' )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v10++;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;else&lt;br /&gt;continue;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;printf ( "a = %d e = %d i = %d o = %d u = %d&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A = %d E = %d I = %d O = %d U = %d",v1, v2, v3, v4, v5, v6, v7, v8, v9, v10 );&lt;br /&gt;&lt;br /&gt;return 1;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OUTPUT:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the string: Facebook&lt;br /&gt;The number of vowels in the string is: a = 1 e = 1 o = 2&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_2473.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display Vowels.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_139.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display Number Of Vowels.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html" target="_blank"&gt;Sample C Program To Swap Two Strings Using strcpy() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html" target="_blank"&gt;Sample C Program To Sort A Given Number Of Strings Using strcmp() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-reverse-of.html" target="_blank"&gt;Sample C Program To Check Whether A String Is Palindrome Or Not.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-compare-two-strings.html" target="_blank"&gt;Sample C Program To Print The Reverse Of A String.&lt;/a&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-2780175053857844869?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/2780175053857844869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_7331.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2780175053857844869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2780175053857844869'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_7331.html' title='Sample C Program To Accept A String &amp; Display Number Of Each Vowels.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-1012398203887775074</id><published>2011-12-25T12:42:00.000+05:30</published><updated>2011-12-25T12:42:10.792+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept A String &amp; Display Number Of Vowels.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;char vowels(char *p);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str[10];&lt;br /&gt;clrscr();&lt;br /&gt;printf(" \n \n&lt;b&gt; Enter the string:&lt;/b&gt; \t ");&lt;br /&gt;gets(str);&lt;br /&gt;vowels(str);&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;char vowels(char *p)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i,l,v=0;&lt;br /&gt;l = strlen(p);&lt;br /&gt;printf(" \n \n &lt;b&gt;The number of vowels in the string is: &lt;/b&gt;\t ");&lt;br /&gt;&lt;br /&gt;for(i = 0 ;i &amp;lt; l ; i++)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if ( p[i] == 'a' || p[i] == 'e' ||  p[i] == 'i' || p[i] == 'o' || p[i] == 'u' ||&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p[i] == 'A' || p[i] == 'E' || p[i] == 'I' || p[i] == 'O' || p[i] == 'U' )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; v++;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;printf("%d",v);&lt;br /&gt;return 1;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OUTPUT:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the string: Dinosaur&lt;br /&gt;The number of vowels in the string is: 4     &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_2473.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display Vowels.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_14.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display In Reverse.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_6286.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display Its Alternate Characters.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_4850.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display Alternate Characters In Either Case.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_25.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display It's Substring.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_8470.html" target="_blank"&gt;Sample C Program To Accept A String &amp;amp; Display It's Alternate Characters In Reverse.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-two-strings.html" target="_blank"&gt;Sample C Program To Accept Two Strings &amp;amp; Display The Largest String.&lt;/a&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-1012398203887775074?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/1012398203887775074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_139.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1012398203887775074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1012398203887775074'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_139.html' title='Sample C Program To Accept A String &amp; Display Number Of Vowels.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4703189637462426390</id><published>2011-12-25T00:46:00.002+05:30</published><updated>2011-12-25T12:27:36.152+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept A String &amp; Display Vowels.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;char vowels(char *p);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str[20];&lt;br /&gt;clrscr();&lt;br /&gt;&lt;br /&gt;printf(" \n \n Enter the string: \t ");&lt;br /&gt;gets(str);&lt;br /&gt;&lt;br /&gt;vowels(str);&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;char vowels(char *p)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i,l;&lt;br /&gt;l = strlen(p);&lt;br /&gt;&lt;br /&gt;printf(" \n \n The vowels in the string are: \t ");&lt;br /&gt;for( i = 0; i &amp;lt; l; i++ )&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; if(p[i] == 'a' || p[i] == 'e' ||  p[i] == 'i' || p[i] == 'o' || p[i] == 'u'|| p[i] == 'A' || p[i] == 'E' || p[i] == 'I' || p[i] == 'O' || p[i] == 'U')&lt;br /&gt;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf("%c",p[i]);&lt;br /&gt;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp; else&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;continue;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;return 1;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OUTPUT:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the string: Malayalam&lt;br /&gt;The vowels in the string are:  a a a   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html" target="_blank"&gt;Sample C Program To Swap Two Strings Using strcpy() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html" target="_blank"&gt;Sample C Program To Sort A Given Number Of Strings Using strcmp() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html" target="_blank"&gt;Sample C Program To Display Array Of Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html" target="_blank"&gt;Sample C Program To Convert String To An Integer Using atoi() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;Sample C Program To Find The Length Of A String.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4703189637462426390?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4703189637462426390/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_2473.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4703189637462426390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4703189637462426390'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_2473.html' title='Sample C Program To Accept A String &amp; Display Vowels.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3718449307166486540</id><published>2011-12-25T00:41:00.001+05:30</published><updated>2011-12-25T12:27:26.386+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept Two Strings &amp; Display Combination Of Two Strings.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void comb(char *p1, char *p2);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str1[10];&lt;br /&gt;char str2[10];&lt;br /&gt;&lt;br /&gt;clrscr();&lt;br /&gt;printf(" \n \n Enter first string:\t ");&lt;br /&gt;&lt;br /&gt;fflush(stdin);&lt;br /&gt;gets(str1);&lt;br /&gt;&lt;br /&gt;printf(" \n \n Enter second string: \t ");&lt;br /&gt;fflush(stdin);&lt;br /&gt;&lt;br /&gt;gets(str2);&lt;br /&gt;comb(str1,str2);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void comb(char *p1, char *p2)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i, l1, l2;&lt;br /&gt;l1 = strlen(p1);&lt;br /&gt;l2 = strlen(p2);&lt;br /&gt;&lt;br /&gt;printf(" \n \n The combination is: \t ");&lt;br /&gt;for( i = 0; i &amp;lt; l1; i++ )&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; printf(" %c ",p1[i]);&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; l2; i++ )&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; printf(" %c ",p2[i]);&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OUTPUT:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter first string: Rahul&lt;br /&gt;Enter second string: Kulkarni&lt;br /&gt;The combination is: RahulKulkarni&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html" target="_blank"&gt;Sample C Program To Swap Two Strings Using strcpy() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html" target="_blank"&gt;Sample C Program To Sort A Given Number Of Strings Using strcmp() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html" target="_blank"&gt;Sample C Program To Display Array Of Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html" target="_blank"&gt;Sample C Program To Convert String To An Integer Using atoi() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;Sample C Program To Find The Length Of A String.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3718449307166486540?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3718449307166486540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-two-strings_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3718449307166486540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3718449307166486540'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-two-strings_25.html' title='Sample C Program To Accept Two Strings &amp; Display Combination Of Two Strings.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4759012014618600183</id><published>2011-12-25T00:34:00.001+05:30</published><updated>2011-12-25T12:27:20.456+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept Two Strings &amp; Display The Largest String.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void largstr(char *p1,char *p2);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str1[10];&lt;br /&gt;char str2[10];&lt;br /&gt;clrscr();&lt;br /&gt;printf(" \n \n Enter first string: \t ");&lt;br /&gt;&lt;br /&gt;fflush(stdin);&lt;br /&gt;gets(str1);&lt;br /&gt;printf(" \n \n Enter second string: \t ");&lt;br /&gt;&lt;br /&gt;fflush(stdin);&lt;br /&gt;gets(str2);&lt;br /&gt;largstr(str1,str2);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void largstr(char *p1, char *p2)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int l1, l2, i;&lt;br /&gt;l1 = strlen(p1);&lt;br /&gt;l2 = strlen(p2);&lt;br /&gt;&lt;br /&gt;printf(" \n \n The largest string is: \t ");&lt;br /&gt;if(l1 &amp;gt; l2)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; for(i = 0; i &amp;lt; l1; i++ )&lt;br /&gt;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" %c ",p1[i]);&lt;br /&gt;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;else&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; for(i = 0; i &amp;lt; l2; i++ )&lt;br /&gt;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; printf("%c",p2[i]);&lt;br /&gt;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OUTPUT:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter first string: rahul&lt;br /&gt;Enter Second String: ankush&lt;br /&gt;The largest string is: ankush&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html" target="_blank"&gt;Sample C Program To Swap Two Strings Using strcpy() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html" target="_blank"&gt;Sample C Program To Sort A Given Number Of Strings Using strcmp() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html" target="_blank"&gt;Sample C Program To Display Array Of Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html" target="_blank"&gt;Sample C Program To Convert String To An Integer Using atoi() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;Sample C Program To Find The Length Of A String.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4759012014618600183?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4759012014618600183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-two-strings.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4759012014618600183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4759012014618600183'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-two-strings.html' title='Sample C Program To Accept Two Strings &amp; Display The Largest String.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3205638836598134499</id><published>2011-12-25T00:27:00.001+05:30</published><updated>2011-12-25T12:27:15.047+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept A String &amp; Display It's Alternate Characters In Reverse.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;char realt(char *p);&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str[10];&lt;br /&gt;clrscr();&lt;br /&gt;printf(" \n \n Enter the string: \t ");&lt;br /&gt;&lt;br /&gt;gets(str);&lt;br /&gt;realt(str);&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;char realt(char *p)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i,l;&lt;br /&gt;l = strlen(p);&lt;br /&gt;&lt;br /&gt;printf(" \n \n Alternate characters in reverse: \t ");&lt;br /&gt;for(i = l - 1; i &amp;gt;= 0; i -= 2)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; printf(" %c ",p[i]);&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;return 1;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OUTPUT:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the string: pneumonia&lt;br /&gt;Alternate characters in reverse: &lt;br /&gt;a&lt;br /&gt;n&lt;br /&gt;m&lt;br /&gt;e&lt;br /&gt;p&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html" target="_blank"&gt;Sample C Program To Swap Two Strings Using strcpy() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html" target="_blank"&gt;Sample C Program To Sort A Given Number Of Strings Using strcmp() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html" target="_blank"&gt;Sample C Program To Display Array Of Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html" target="_blank"&gt;Sample C Program To Convert String To An Integer Using atoi() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;Sample C Program To Find The Length Of A String.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3205638836598134499?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3205638836598134499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_8470.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3205638836598134499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3205638836598134499'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_8470.html' title='Sample C Program To Accept A String &amp; Display It&apos;s Alternate Characters In Reverse.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-1718323779173172653</id><published>2011-12-25T00:23:00.001+05:30</published><updated>2011-12-25T12:27:09.410+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept A String &amp; Display It's Substring.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;char substr(char *p, int s, int n);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str[50];&lt;br /&gt;int start,no_of_chars;&lt;br /&gt;clrscr();&lt;br /&gt;&lt;br /&gt;printf(" \n \n Enter the string: \t ");&lt;br /&gt;gets(str);&lt;br /&gt;&lt;br /&gt;printf(" \n \n Enter start position for substring: \t ");&lt;br /&gt;fflush(stdin);&lt;br /&gt;&lt;br /&gt;scanf(" %d ",&amp;amp;start);&lt;br /&gt;printf(" \n \n Enter number of characters: \t ");&lt;br /&gt;fflush(stdin);&lt;br /&gt;&lt;br /&gt;scanf(" %d ",&amp;amp;no_of_chars);&lt;br /&gt;substr(str,start,no_of_chars);&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;char substr(char *p, int s, int n)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i;&lt;br /&gt;printf(" \n \n The substring is: \t ");&lt;br /&gt;for( i = s - 1; i &amp;lt; n;i++)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; printf("%c",p[i]);&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;return 1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OUTPUT:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the string: Please Mention Your Address:&lt;br /&gt;Enter start position for substring: 20&lt;br /&gt;Enter number of characters: 7&lt;br /&gt;The substring is: Address&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html" target="_blank"&gt;Sample C Program To Swap Two Strings Using strcpy() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html" target="_blank"&gt;Sample C Program To Sort A Given Number Of Strings Using strcmp() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html" target="_blank"&gt;Sample C Program To Display Array Of Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html" target="_blank"&gt;Sample C Program To Convert String To An Integer Using atoi() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;Sample C Program To Find The Length Of A String.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-1718323779173172653?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/1718323779173172653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1718323779173172653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1718323779173172653'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_25.html' title='Sample C Program To Accept A String &amp; Display It&apos;s Substring.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4874972169018672140</id><published>2011-12-14T22:10:00.000+05:30</published><updated>2011-12-14T22:10:17.559+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept A String &amp; Display Alternate Characters In Either Case.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;char altcase(char *p);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str[20];&lt;br /&gt;clrscr();&lt;br /&gt;printf(" \n \n &lt;b&gt;Enter the string:&lt;/b&gt; \t ");&lt;br /&gt;gets(str);&lt;br /&gt;altcase(str);&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;char altcase(char *p)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;printf(" \n \n &lt;b&gt;Alternate characters of string are:&lt;/b&gt; \t ");&lt;br /&gt;while(*p)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp;if (*p &amp;gt;= 'A' &amp;amp;&amp;amp; *p &amp;lt;= 'Z')&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; *p = *p + 32;&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp;else if (*p &amp;gt;='a' &amp;amp;&amp;amp; *p &amp;lt;='z')&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; *p = *p - 32;&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp;printf("%c",*p);&lt;br /&gt;&amp;nbsp; &amp;nbsp;p += 2;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;return 1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;OUTPUT:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter the string:&lt;/b&gt; LnTInfotech&lt;br /&gt;&lt;b&gt;Alternate Characters of string are:&lt;/b&gt; L T n o e h&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html" target="_blank"&gt;Sample C Program To Swap Two Strings Using strcpy() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html" target="_blank"&gt;Sample C Program To Sort A Given Number Of Strings Using strcmp() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html" target="_blank"&gt;Sample C Program To Display Array Of Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html" target="_blank"&gt;Sample C Program To Convert String To An Integer Using atoi() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;Sample C Program To Find The Length Of A String.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4874972169018672140?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4874972169018672140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_4850.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4874972169018672140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4874972169018672140'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_4850.html' title='Sample C Program To Accept A String &amp; Display Alternate Characters In Either Case.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-2218595530496255618</id><published>2011-12-14T22:02:00.000+05:30</published><updated>2011-12-14T22:02:09.166+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept A String &amp; Display Its Alternate Characters.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;char alt(char *p);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str[10];&lt;br /&gt;clrscr();&lt;br /&gt;printf(" \n \n &lt;b&gt;Enter the string:&lt;/b&gt; \t ");&lt;br /&gt;gets(str);&lt;br /&gt;alt(str);&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;char alt(char *p)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int j,l;&lt;br /&gt;l = strlen(p);&lt;br /&gt;printf(" \n \n &lt;b&gt;Alternate characters of the entered string are: &lt;/b&gt;\t ");&lt;br /&gt;for(j = 0; j &amp;lt;= l - 1; j = j + 2)   &lt;br /&gt;&amp;nbsp; {      &lt;br /&gt;&amp;nbsp; &amp;nbsp; printf("%c",p[j]);    &lt;br /&gt;&amp;nbsp; }   &lt;br /&gt;return 1;  &lt;br /&gt;}   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;OUTPUT:  &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter the string:&lt;/b&gt; BODYGUARD &lt;br /&gt;&lt;b&gt;Alternate characters of the entered string are: &lt;/b&gt;&lt;br /&gt;B   D    G    A    D    &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html" target="_blank"&gt;Sample C Program To Swap Two Strings Using strcpy() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html" target="_blank"&gt;Sample C Program To Sort A Given Number Of Strings Using strcmp() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html" target="_blank"&gt;Sample C Program To Display Array Of Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html" target="_blank"&gt;Sample C Program To Convert String To An Integer Using atoi() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;Sample C Program To Find The Length Of A String.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-2218595530496255618?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/2218595530496255618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_6286.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2218595530496255618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2218595530496255618'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_6286.html' title='Sample C Program To Accept A String &amp; Display Its Alternate Characters.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-7174432881351945645</id><published>2011-12-14T21:57:00.000+05:30</published><updated>2011-12-14T21:57:52.254+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept A String &amp; Display In Reverse.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;char reverse(char *p);&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i;&lt;br /&gt;char str[10];&lt;br /&gt;clrscr();&lt;br /&gt;printf(" \n \n &lt;b&gt;Enter the String:&lt;/b&gt; \t ");&lt;br /&gt;gets(str);&lt;br /&gt;reverse(str);&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;char &lt;b&gt;reverse&lt;/b&gt;(char *p)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int j,l;&lt;br /&gt;l = strlen(p);&lt;br /&gt;printf(" \n \n&lt;b&gt; String in reverse is: &lt;/b&gt;\t ");&lt;br /&gt;for(j = l - 1; j &amp;gt;= 0; j--)&lt;br /&gt;{&lt;br /&gt;printf("%c",p[j]);&lt;br /&gt;}&lt;br /&gt;return 1;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;OUTPUT:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter the string:&lt;/b&gt; Kolaveri&lt;br /&gt;&lt;b&gt;String in reverse is:&lt;/b&gt; irevalok&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALSO READ:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html" target="_blank"&gt;Sample C Program To Swap Two Strings Using strcpy() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html" target="_blank"&gt;Sample C Program To Sort A Given Number Of Strings Using strcmp() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html" target="_blank"&gt;Sample C Program To Display Array Of Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html" target="_blank"&gt;Sample C Program To Convert String To An Integer Using atoi() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;Sample C Program To Find The Length Of A String.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-7174432881351945645?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/7174432881351945645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7174432881351945645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7174432881351945645'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string_14.html' title='Sample C Program To Accept A String &amp; Display In Reverse.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-8636348968680621834</id><published>2011-12-14T21:52:00.001+05:30</published><updated>2011-12-14T22:14:07.671+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c strings interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Accept A String &amp; Display It.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;char string( char str2[10] );&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i;&lt;br /&gt;char str1[10];&lt;br /&gt;clrscr();&lt;br /&gt;&lt;br /&gt;printf(" \n \n &lt;b&gt;Enter The String:&lt;/b&gt; \t ");&lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt;= 9; i++ )&lt;br /&gt;&amp;nbsp; &amp;nbsp; scanf(" %c ", &amp;amp;str1[i] );&lt;br /&gt;&lt;br /&gt;string( str1 );&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;char string(char str2[10])&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int j;&lt;br /&gt;printf(" \n \n &lt;b&gt;The String Is&lt;/b&gt; \t ");&lt;br /&gt;&lt;br /&gt;for( j = 0; j &amp;lt;= 9; j++ )&lt;br /&gt;&amp;nbsp; &amp;nbsp; printf(" %c ", str2[j] );&lt;br /&gt;&lt;br /&gt;return 1;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter The String:&lt;/b&gt; Interview&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The String Is:&lt;/b&gt; Interview&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html" target="_blank"&gt;Sample C Program To Swap Two Strings Using strcpy() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html" target="_blank"&gt;Sample C Program To Sort A Given Number Of Strings Using strcmp() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html" target="_blank"&gt;Sample C Program To Display Array Of Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html" target="_blank"&gt;Sample C Program To Convert String To An Integer Using atoi() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;Sample C Program To Find The Length Of A String.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-8636348968680621834?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/8636348968680621834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8636348968680621834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8636348968680621834'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/12/sample-c-program-to-accept-string.html' title='Sample C Program To Accept A String &amp; Display It.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-8457803209752179899</id><published>2011-10-17T14:02:00.001+05:30</published><updated>2011-10-17T16:28:46.746+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='datastructures'/><category scheme='http://www.blogger.com/atom/ns#' term='technical interview'/><category scheme='http://www.blogger.com/atom/ns#' term='c data structures interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions and answers'/><category scheme='http://www.blogger.com/atom/ns#' term='answers'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure'/><title type='text'>Data Structure - Interviews Questions With Answers - 10.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "Data Structures". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;46) What do you mean by Polish string ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Polish string refers to the notation in which the operator symbol&lt;/b&gt; is placed either before its operands (prefix notation) or after it operands (postfix notation). The usual form, in which the operator is placed in between the operands is called infix notation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;47) What do you mean by an infix, postfix and prefix expression ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An expression where operators are placed in between the operands is called a&amp;nbsp;&lt;b&gt;infix expression&lt;/b&gt;.&lt;br /&gt;E.g.: A + B &lt;br /&gt;&lt;br /&gt;An expression where operators are placed after the operands is called a&lt;b&gt; postfix expression&lt;/b&gt;.&lt;br /&gt;E.g.: AB+ &lt;br /&gt;&lt;br /&gt;An expression where operators are placed before the operands is called a &lt;b&gt;prefix expression&lt;/b&gt;.&lt;br /&gt;E.g.: +AB&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;48) What is the evaluation order according to which an infix expression is converted to postfix expression ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;evaluation order&lt;/b&gt; is:&lt;br /&gt;&lt;br /&gt;I. Brackets or Parenthesis,&lt;br /&gt;II. Exponentiation,&lt;br /&gt;III. Multiplication or division,&lt;br /&gt;IV. Addition or subtraction.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The operators with the same priority are evaluated from left to right.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;49) Give the advantages of using post fix notations over infix notations ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An &lt;b&gt;infix expression&lt;/b&gt; is evaluated keeping in mind the precedence of operators. &lt;b&gt;An infix expression&lt;/b&gt; is difficult for the machine to know and keep track of precedence of operators. &lt;b&gt;A postfix expression&lt;/b&gt; itself takes care of the precedence of operators as the placement of operators. Thus, for the machine, it is easier to carry out a &lt;b&gt;postfix expression than an infix expression. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;50) How can prefix notations be converted to infix form ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;prefix expression is converted to infix expression&lt;/b&gt; by scanning from left to right until we find the first operator that is immediately followed by a pair of operands. &lt;b&gt;This binary expression is converted to infix&lt;/b&gt; by placing the operator in between two operands. The &lt;b&gt;resultant expression continues&lt;/b&gt; until all the operators are placed between operands.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 1.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_12.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 2.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6492.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 3.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_1261.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 4.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/data-structure.html" target="_blank"&gt;&lt;b&gt;...Back To Data Structure Index.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-8457803209752179899?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/data-structure.html' title='Data Structure - Interviews Questions With Answers - 10.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/8457803209752179899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_4502.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8457803209752179899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8457803209752179899'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_4502.html' title='Data Structure - Interviews Questions With Answers - 10.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-5178382609130677947</id><published>2011-10-17T13:51:00.001+05:30</published><updated>2011-10-17T16:29:46.260+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='datastructures'/><category scheme='http://www.blogger.com/atom/ns#' term='technical interview'/><category scheme='http://www.blogger.com/atom/ns#' term='c data structures interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions and answers'/><category scheme='http://www.blogger.com/atom/ns#' term='answers'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure'/><title type='text'>Data Structure - Interviews Questions With Answers - 9.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "Data Structures". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;41) What do you mean by bubble sort ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Bubble sort is an array sorting technique&lt;/b&gt; in which the adjoining values are compared and exchanged if they are not in the proper order. The process repeats until the entire array is sorted. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;42) What is insertion sort ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In &lt;b&gt;insertion sort&lt;/b&gt;, each successive element is picked from its position and inserted at an appropriate position in the previously sorted array. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;43) Differentiate between the different types of linked lists ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Linked lists are of two types viz, &lt;b&gt;singly linked or one-way lists and doubly linked or two-way lists&lt;/b&gt;. Singly linked lists contain node with single pointer pointing to the next node in sequence whereas &lt;b&gt;doubly linked lists contain two pointers&lt;/b&gt;, one pointing to previous node and other pointing to the next node in sequence.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;44) What do you mean by ‘pushing’ and ‘popping’ with regard to stacks ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Pushing an element into a stack implies inserting a new element into a stack. &lt;/b&gt;This can be done only when the stack has more memory to incorporate the new element. i.e., the stack should not be overflow.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Popping is the deletion of an element from a stack&lt;/b&gt;. Popping elements from a stack is possible only when the stack has some elements, i.e., it is not underflow. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;45) What are input restricted dequeues and output restricted dequeues ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An input restricted &lt;b&gt;dequeue is a dequeue which allows insertions at only one end but allows deletions at both ends of the list.&lt;/b&gt; An output restricted deque is a deque which allows deletions at only one end of the list but allows insertions at both ends of the list. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 1.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_12.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 2.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6492.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 3.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_1261.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 4.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_17.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 5.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/data-structure.html" target="_blank"&gt;&lt;b&gt;...Back To Data Structure Index.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-5178382609130677947?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/data-structure.html' title='Data Structure - Interviews Questions With Answers - 9.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/5178382609130677947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_2573.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5178382609130677947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5178382609130677947'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_2573.html' title='Data Structure - Interviews Questions With Answers - 9.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4038385815923429992</id><published>2011-10-17T13:44:00.001+05:30</published><updated>2011-10-17T16:30:44.084+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='datastructures'/><category scheme='http://www.blogger.com/atom/ns#' term='technical interview'/><category scheme='http://www.blogger.com/atom/ns#' term='c data structures interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions and answers'/><category scheme='http://www.blogger.com/atom/ns#' term='answers'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure'/><title type='text'>Data Structure- Interviews Questions With Answers - 8.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "Data Structures". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;36) What are the differences between linear search and binary search ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;differences between linear and binary searches&lt;/b&gt; are:&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;b&gt;Binary search&lt;/b&gt; carries out the searching process with the minimum number of comparisons but &lt;b&gt;linear search&lt;/b&gt; does not guarantee lesser number of comparisons.&lt;/li&gt;&lt;li&gt;To save on time and comparisons, &lt;b&gt;binary search is much more beneficial than linear search.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Binary search&lt;/b&gt; can work for only sorted arrays whereas &lt;b&gt;linear search&lt;/b&gt; can work for both sorted as well as unsorted arrays.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;37) State the condition(s) under which binary search is applicable ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;conditions for binary search&lt;/b&gt; are:&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;The list must be sorted.&lt;/li&gt;&lt;li&gt;Lower bound and upper bound, and the sort order of the list must be known.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;38) What are the advantages of linked lists over arrays ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Linked lists overcome the drawbacks of arrays as in linked lists&lt;/b&gt;, number of elements need not be predetermined, and more memory can be allocated or released during the processing as and when required, making insertions and deletions much easier and simpler.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;39) What is sorting of an array ? Name a few types of sorting techniques ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Sorting of an array means arranging the array-elements in a specified order, i.e. either ascending or descending order. &lt;b&gt;Numerous sorting techniques are available.&lt;/b&gt; A few of them are &lt;b&gt;shell sort, shuttle sort, bubble sort, selection sort, quick sort, heap sort etc. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;40) What is the mechanism of selection sort ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In selection sort, &lt;b&gt;the smallest or largest element key&lt;/b&gt;, depending on the user’s desired order, from the remaining&lt;b&gt; unsorted array is searched&lt;/b&gt; for and put in the sorted array. This process is repeated until the entire array gets sorted.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6492.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 3.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_1261.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 4.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_17.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 5.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_7765.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 6.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_5650.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 7.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/data-structure.html" target="_blank"&gt;&lt;b&gt;...Back To Data Structure Index.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4038385815923429992?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/data-structure.html' title='Data Structure- Interviews Questions With Answers - 8.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4038385815923429992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6196.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4038385815923429992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4038385815923429992'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6196.html' title='Data Structure- Interviews Questions With Answers - 8.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-240205384304891446</id><published>2011-10-17T13:24:00.001+05:30</published><updated>2011-10-17T16:32:52.694+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='datastructures'/><category scheme='http://www.blogger.com/atom/ns#' term='technical interview'/><category scheme='http://www.blogger.com/atom/ns#' term='c data structures interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions and answers'/><category scheme='http://www.blogger.com/atom/ns#' term='answers'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure'/><title type='text'>Data Structure- Interviews Questions With Answers - 7.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "Data Structures". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;31) List the basic operations which can be performed on data structures ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;basic operations which can be performed on data structures&lt;/b&gt; are:&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;b&gt;Insertion&lt;/b&gt;: Addition of new element into a data structure.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Deletion&lt;/b&gt;: Removal of a data element from a data structure.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Searching&lt;/b&gt;: Searching for and finding a specified data element in a data structure.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Traversal&lt;/b&gt;: Traversing along a data structure and processing all the data elements of it.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Sorting&lt;/b&gt;: Arranging data elements of a data structure in a specified order.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Merging&lt;/b&gt;: Combining elements of two similar data structures to form a new data structure of same type.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;32) How can you calculate the size of an array, given the upper and lower bounds of the array ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;When upper bound and lower bound of an array are given, its size is calculated as:&lt;br /&gt;&lt;br /&gt;Array size (length) = UB – LB + 1&lt;br /&gt;&lt;br /&gt;Where UB = Upper bound and LB = lower bound. In C++, the lower bound is always 0 and the upper bound is (size-1).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;33) Which are the two very common search techniques and what are their mechanisms ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The two most &lt;b&gt;common search techniques&lt;/b&gt; are &lt;b&gt;linear search&lt;/b&gt; and &lt;b&gt;binary search&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;In&lt;b&gt; linear search&lt;/b&gt;, each element of an array is compared with the given specified element to be searched for, one by one. But in &lt;b&gt;binary search&lt;/b&gt;, the specific element is searched for, in a sorted array. The search segment reduces to half at every successive stage.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;34) Describe how linear search is carried out ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In &lt;b&gt;linear search&lt;/b&gt;, each element of an array is compared with the given specified element to be searched for, one by one. In this method, also called the&lt;b&gt; sequential search method&lt;/b&gt;, the array is traversed sequentially to locate the given element. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;35) How does the binary search work?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In &lt;b&gt;binary search, the search searches for the specific element, in a sorted array.&lt;/b&gt; The search segment reduces to half at every successive stage. &lt;b&gt;Binary search searches for an element in minimum possible comparisons.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For the first stage of searching, the segment contains the entire array. In each stage, the element to be&lt;b&gt; searched for is compared with the middle element in that segment.&lt;/b&gt; Hence, the scanning process depends completely on the comparison of values with the middle element.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6492.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 3.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_1261.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 4.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_17.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 5.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_7765.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 6.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/data-structure.html" target="_blank"&gt;&lt;b&gt;...Back To Data Structure Index.&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-240205384304891446?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/data-structure.html' title='Data Structure- Interviews Questions With Answers - 7.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/240205384304891446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_5650.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/240205384304891446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/240205384304891446'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_5650.html' title='Data Structure- Interviews Questions With Answers - 7.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-231552776224317944</id><published>2011-10-17T12:37:00.001+05:30</published><updated>2011-10-17T16:33:26.564+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='datastructures'/><category scheme='http://www.blogger.com/atom/ns#' term='technical interview'/><category scheme='http://www.blogger.com/atom/ns#' term='c data structures interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions and answers'/><category scheme='http://www.blogger.com/atom/ns#' term='answers'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure'/><title type='text'>Data Structure- Interviews Questions With Answers - 6.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "Data Structures". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;26) What are the different types of arrays?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Arrays are of different types namely &lt;b&gt;one-dimensional arrays, two-dimensional arrays and multi-dimensional arrays.&lt;/b&gt; One-dimensional arrays comprise of finite homogeneous elements while multi-dimensional arrays comprise of elements, each of which is itself an array. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;27) What do you mean by the base address of an array?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In memory, one-dimensional arrays are implemented by allocating a sequence of addressed locations so as to accommodate all its elements.&lt;b&gt; The starting address of the very first element of the array is called base address of the array. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;28) Give the formula to calculate the address of any element in an array, when the length of the array along with its base address and size of the element are given ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The formula to &lt;b&gt;calculate address of any element in an array&lt;/b&gt; is:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Address of the element&lt;/b&gt; with subscript I = Base address + ES (I – L)&lt;br /&gt;&lt;br /&gt;- Where ES is the size of an array element;&lt;br /&gt;L is the lower bound of the array and all array elements are of the same size.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;29) How is computer memory allotted for a two-dimensional array ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For two-dimensional array, the computer memory is allotted &lt;b&gt;either in Row-major form or in Column-major form. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Row-major form &lt;b&gt;stores the 2-D arrays row wise&lt;/b&gt; i.e. firstly the first row is stored, then the second row, then third row, and so forth.&lt;br /&gt;&lt;br /&gt;Column-major form stores the 2-D array column wise i.e. firstly the first column, then the second column, then third, and so forth. &lt;b&gt;The default form is Row-major.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;30) What is the difference between an array and a stack housed in an array?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An &lt;b&gt;array is a group of homogeneous elements stored in contiguous memory locations.&lt;/b&gt; The elements in an array can be processed from anywhere in the array. &lt;br /&gt;&lt;br /&gt;A &lt;b&gt;stack implemented as an array has elements stored in contiguous memory locations&lt;/b&gt;. But a stack is always processed in a LIFO manner i.e. Last in First out manner wherein the elements can be added or removed from the top end of the stack. That is why a &lt;b&gt;stack is also called a LIFO data structure.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_5650.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 7.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6196.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 8.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_2573.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 9.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_4502.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 10.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/data-structure.html" target="_blank"&gt;&lt;b&gt;...Back To Data Structure Index.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-231552776224317944?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/data-structure.html' title='Data Structure- Interviews Questions With Answers - 6.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/231552776224317944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_7765.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/231552776224317944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/231552776224317944'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_7765.html' title='Data Structure- Interviews Questions With Answers - 6.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4404591750539680647</id><published>2011-10-17T12:26:00.001+05:30</published><updated>2011-10-17T16:25:48.831+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='datastructures'/><category scheme='http://www.blogger.com/atom/ns#' term='technical interview'/><category scheme='http://www.blogger.com/atom/ns#' term='c data structures interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions and answers'/><category scheme='http://www.blogger.com/atom/ns#' term='answers'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure'/><title type='text'>Data Structure- Interviews Questions With Answers - 5.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "Data Structures". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;21) What advantages and disadvantages, do you think does a circular singly linked list have over a non-circular singly linked list? &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;circular singly linked list&lt;/b&gt; is advantageous over a &lt;b&gt;non-circular singly linked list&lt;/b&gt; because the former helps in sequencing from any node to any other node in the list. And the disadvantage is that it can make the end of the list more difficult to detect than if the last node contained a NULL next pointer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;22) Give the similarities between queues and stacks ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Both queues and stacks are special cases of &lt;b&gt;linear lists&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Both can be implemented as &lt;b&gt;arrays or linked lists&lt;/b&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;23) Differentiate between queues and stacks ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The differences between queues and stacks are:&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;A stack is a &lt;b&gt;LIFO list&lt;/b&gt; while a queue is a &lt;b&gt;FIFO list&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;There are no variations of stack. A queue, however, &lt;b&gt;may be circular or dequeue&lt;/b&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;24) To perform recursion, which data structure is generally used?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Stack data structures are generally used to perform recursion.&lt;/b&gt; Since stack is a LIFO or ‘Last in First Out’ list, it has the ability to remember and recognize its ‘caller’. Thus, it knows to whom it is supposed to return. In the case of a recursive function’s equivalent iterative, non-recursive function too, &lt;b&gt;explicit stacks&lt;/b&gt; are used. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;25) What do you mean by merging of data structures?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Merging of data structures is the process of generating new data structures from existing individual data structures. In Merging, elements of two data structures are combined to form a new data structure.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_7765.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 6.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_5650.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 7.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6196.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 8.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_2573.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 9.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/data-structure.html" target="_blank"&gt;&lt;b&gt;...Back To Data Structure Index.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4404591750539680647?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/data-structure.html' title='Data Structure- Interviews Questions With Answers - 5.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4404591750539680647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_17.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4404591750539680647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4404591750539680647'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_17.html' title='Data Structure- Interviews Questions With Answers - 5.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-2297771859793679137</id><published>2011-10-12T23:26:00.003+05:30</published><updated>2011-10-17T16:26:06.156+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='c data structures'/><category scheme='http://www.blogger.com/atom/ns#' term='datastructures'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='technical'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions and answers'/><category scheme='http://www.blogger.com/atom/ns#' term='answers'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='structures'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure'/><title type='text'>Data Structure- Interviews Questions With Answers - 4.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "Data Structures". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;16) What Is A Circular Queue ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Circular queues are the queues&lt;/b&gt; implemented in circular form rather than a straight line. In these types of queue, the last element is always followed by the first element.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;17) What Do You Mean By The Terms ‘Overflow’ &amp;amp; ‘Underflow’ In Data Structures ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Overflow and Underflow are two states in data structures&lt;/b&gt; when further insertions and deletions respectively are not possible in the data structure. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Overflow refers&lt;/b&gt; to inserting a node when no memory is available and Underflow refers to deleting from an empty list.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;18) What Is Meant By Dequeue ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Queues in which elements can be added or removed&lt;/b&gt; at either end but not in the middle are called dequeues. There are two types of dequeue namely input restricted dequeue and output restricted dequeue.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;19) What Do You Mean By Garbage Collection In Data Structures ? What Role Does The AVAIL List Play In A Linked List ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Garbage collection in data structures&lt;/b&gt; is the process by which the deleted nodes, i.e. released memory are added to the AVAIL list. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;AVAIL list is also a linked list&lt;/b&gt; keeping account of free memory locations, so that memory can be allocated to new nodes at the time of insertion.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;20) Differentiate Between A LIFO &amp;amp; FIFO List ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;A LIFO list is a list which uses the Last in First Out technique.&lt;/b&gt; A LIFO list is processed in LIFO manner, i.e. elements that are entered last are removed first of all. A stack is an example of a LIFO list.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;A FIFO or First in First Out list processes its elements in first come first served basis.&lt;/b&gt; A queue is a FIFO list. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_17.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 5.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_7765.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 6.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_5650.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 7.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6196.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 8.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/data-structure.html" target="_blank"&gt;&lt;b&gt;...Back To Data Structure Index.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-2297771859793679137?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/data-structure.html' title='Data Structure- Interviews Questions With Answers - 4.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/2297771859793679137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_1261.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2297771859793679137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2297771859793679137'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_1261.html' title='Data Structure- Interviews Questions With Answers - 4.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4333889771381841721</id><published>2011-10-12T23:02:00.003+05:30</published><updated>2011-10-17T16:21:47.392+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='c data structures'/><category scheme='http://www.blogger.com/atom/ns#' term='datastructures'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='technical'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions and answers'/><category scheme='http://www.blogger.com/atom/ns#' term='answers'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='structures'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure'/><title type='text'>Data Structure- Interviews Questions With Answers - 3.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "Data Structures". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;11) What Is A Stack ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Stack data structure&lt;/b&gt; refers to the lists stored and accessed in a special way, &lt;b&gt;where LIFO or Last in First Out technique is followed.&lt;/b&gt; In stacks, insertions and deletions take place only at one end, called the top. Stack is similar to a stack of plates or a stack of CDs arranged vertically. In either stacks, objects, i.e. plates or CDs are&lt;b&gt; inserted or removed only from the top of the stack.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;12) What Is A Queue ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Queue data structure is a FIFO or First in First Out list,&lt;/b&gt; where &lt;b&gt;insertions take place at the rear end of the queue and deletions take place at the front end of the queue.&lt;/b&gt; Queue is much the same as a line of people waiting for their turn to vote, or a queue at a railway station. The first person will be the first in the queue and a new person can join the queue at the rear end of it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;13) What Are Linked Lists ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Linked lists are special lists of some &lt;b&gt;data elements linked to one another.&lt;/b&gt; The logical ordering is represented by having each element pointing to the next element. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Each element is called a node&lt;/b&gt;, which has two parts. The information part which stores the information and the pointer part which points to the next element. &lt;b&gt;Linked lists can be singly linked or doubly linked. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;14) What Are Trees ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Trees are non linear data structures&lt;/b&gt; having a hierarchical relationship between various elements called nodes. The topmost node is called the&lt;b&gt; root of the tree&lt;/b&gt; and the &lt;b&gt;bottommost nodes are the leaves of the tree. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;15) What Are Arrays ? &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;When elements of &lt;b&gt;linear data structures&lt;/b&gt; are represented in memory by means of sequential memory locations, these linear structures are called&lt;b&gt; arrays&lt;/b&gt;. Arrays are one of the&lt;b&gt; simplest data structures and are very easy to traverse, search, sort etc.&lt;/b&gt; An array stores a list of finite number of homogeneous data elements.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_1261.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 4.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_17.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 5.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_7765.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 6.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_5650.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 7.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6196.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 8.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/data-structure.html" target="_blank"&gt;&lt;b&gt;...Back To Data Structure Index.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4333889771381841721?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/data-structure.html' title='Data Structure- Interviews Questions With Answers - 3.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4333889771381841721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6492.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4333889771381841721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4333889771381841721'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6492.html' title='Data Structure- Interviews Questions With Answers - 3.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-1183904117799640138</id><published>2011-10-12T22:50:00.002+05:30</published><updated>2011-10-17T16:20:13.609+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='c data structures'/><category scheme='http://www.blogger.com/atom/ns#' term='datastructures'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='technical'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions and answers'/><category scheme='http://www.blogger.com/atom/ns#' term='answers'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='structures'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure'/><title type='text'>Data Structure- Interviews Questions With Answers - 2.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "Data Structures". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;6) What Are Non Linear Data Structures ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Non linear data structures are multi level data structures.&lt;/b&gt; Examples of non linear data structure are &lt;b&gt;trees and graphs&lt;/b&gt;. In such non linear data structures, the elements share a hierarchical relationship among themselves rather than forming a sequence.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;7) Differentiate Between Data Types &amp;amp; Data Structures ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A&lt;b&gt; data type&lt;/b&gt; is a named &lt;b&gt;group of data with similar characteristics&lt;/b&gt; and behavior, E.g.: Integer, real, Boolean, character etc.&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;data structure&lt;/b&gt; is a named &lt;b&gt;group of data of different data types&lt;/b&gt;, organized in a particular format and characterized by specific operations that can be performed on it. E.g.: Queues, arrays, trees etc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;8) List Four Major Operations On Linear Data Structures ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Four major operations performed on&lt;b&gt; linear data structures&lt;/b&gt; are:&lt;br /&gt;&lt;br /&gt;• &lt;b&gt;Searching&lt;/b&gt;: Refers to searching for a given ITEM in a given data structure.&lt;br /&gt;• &lt;b&gt;Sorting&lt;/b&gt;: Refers to rearranging the elements of a given data structure in a particular order.&lt;br /&gt;• &lt;b&gt;Traversing&lt;/b&gt;: Refers to the act of accessing and processing each element of a data structure.&lt;br /&gt;• &lt;b&gt;Inserting&lt;/b&gt;: Refers to inserting a given ITEM in a given data structure.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;9) What Do You Mean By A Static Data Structure ? &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A static data structure is a data structure that &lt;b&gt;requires memory allocation&lt;/b&gt; before its processing starts. For such a data structure, a fixed amount of memory is allocated before processing begins.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;10) What Is Dynamic Memory Allocation ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Dynamic data structure is a &lt;b&gt;data structure that does not require fixed amount of memory&lt;/b&gt; beforehand; rather, memory is allocated to it dynamically. With such a &lt;b&gt;data structure&lt;/b&gt;, more memory can be allocated as and when required and unused memory can be freed during the program execution.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6492.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 3.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_1261.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 4.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_17.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 5.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_7765.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 6.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/data-structure.html" target="_blank"&gt;&lt;b&gt;...Back To Data Structure Index.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-1183904117799640138?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/data-structure.html' title='Data Structure- Interviews Questions With Answers - 2.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/1183904117799640138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1183904117799640138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1183904117799640138'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_12.html' title='Data Structure- Interviews Questions With Answers - 2.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-5146841675606444601</id><published>2011-10-12T21:47:00.065+05:30</published><updated>2011-10-17T16:19:01.996+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='c data structures'/><category scheme='http://www.blogger.com/atom/ns#' term='datastructures'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='technical'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions and answers'/><category scheme='http://www.blogger.com/atom/ns#' term='answers'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='structures'/><category scheme='http://www.blogger.com/atom/ns#' term='questions'/><category scheme='http://www.blogger.com/atom/ns#' term='data structure'/><title type='text'>Data Structure- Interviews Questions With Answers - 1.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "Data Structures". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1) What Is Data Structure?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A named group of data, of different data types, which can be processed as a single unit is referred to as a data structure. &lt;b&gt;Data structures&lt;/b&gt; have well-defined operations, behavior and properties. &lt;b&gt;Arrays, stacks, queues, trees are all examples of data structures.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2) What Is The Need For Data Structures In Programming?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;There are various situations in real life when there is &lt;b&gt;need to treat a group of different data types as a single unit. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For example, a record in a file has several fields of different data types and the entire record may be required to be processed in one unit. In such a case, &lt;b&gt;data structures are essential&lt;/b&gt; to combine different data types and process them together. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3) What Are The Different Data Types Which A Data Structure May Comprise Of?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Data structures&lt;/b&gt; contain mainly &lt;b&gt;three different data types:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;• &lt;b&gt;Primitive data types:&lt;/b&gt; These are &lt;b&gt;standard or fundamental data types&lt;/b&gt; which are not composed of other data types. E.g.: Integer, Real and Character data types. &lt;br /&gt;&lt;br /&gt;•&lt;b&gt; Non-primitive data types:&lt;/b&gt; These are normally&lt;b&gt; user-defined data types&lt;/b&gt; which are composed of primitive data types. E.g.: Array, structure, class, enumeration, union etc.&lt;br /&gt;&lt;br /&gt;• &lt;b&gt;Pointers: &lt;/b&gt;This is a special kind of&lt;b&gt; data structure which enables storage of pointers,&lt;/b&gt; i.e., addresses of some other data locations. E.g.: Linked lists, stacks, queues, trees etc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4) How Can Data Structures Be Classified? &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Data structures&lt;/b&gt; are basically classified into&lt;b&gt; two groups: &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;• &lt;b&gt;Simple data structures:&lt;/b&gt; These data structures are normally &lt;b&gt;built from primitive data types&lt;/b&gt; like integers, reals, characters, Boolean. Arrays and structures can be termed as simple data structures.&lt;br /&gt;&lt;br /&gt;• &lt;b&gt;Compound data structures:&lt;/b&gt; These are complex data structures which are formed by &lt;b&gt;combining simple data structures in various ways.&lt;/b&gt; Trees, stacks, queues and linked lists are&lt;b&gt; compound data structures.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5) What Are Linear Data Structures?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Compound data structures&lt;/b&gt; are classified into two types of data structures namely &lt;b&gt;linear and non linear data structures. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Linear data structures are single level data structures.&lt;/b&gt; A data structure can be called a linear data structure if its elements form a sequence.&lt;b&gt; Examples of linear data structures are stacks, queues and linked lists.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_12.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 2.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_6492.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 3.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_1261.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 4.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions_17.html" target="_blank"&gt;&lt;b&gt;Data Structure - Interviews Questions With Answers - 5.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/data-structure.html" target="_blank"&gt;&lt;b&gt;...Back To Data Structure Index.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-5146841675606444601?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/data-structure.html' title='Data Structure- Interviews Questions With Answers - 1.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/5146841675606444601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5146841675606444601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5146841675606444601'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/data-structure-interviews-questions.html' title='Data Structure- Interviews Questions With Answers - 1.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3683009512811651684</id><published>2011-10-12T20:44:00.002+05:30</published><updated>2011-10-12T20:48:44.864+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c program pointer'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='simple pointer program'/><category scheme='http://www.blogger.com/atom/ns#' term='sample program on address pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample programs on pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='c program on pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='pointers programs'/><category scheme='http://www.blogger.com/atom/ns#' term='programs based on pointers'/><title type='text'>Sample C Program On Strings Into Array Of Pointers</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;                                                        &lt;br /&gt;#include &amp;lt;alloc.h&amp;gt;&lt;br /&gt;#include &amp;lt;string.h&amp;gt;                                                          &lt;br /&gt;&lt;br /&gt;#define S 4                                                                  &lt;br /&gt;main()                                                                      &lt;br /&gt;{                                                                            &lt;br /&gt;&lt;br /&gt;char*arr_str[S];                                                             &lt;br /&gt;char temp[20];                                                               &lt;br /&gt;int i, n, len;                                                               &lt;br /&gt;clrscr();                                                                    &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; S; i++ )                                                           &lt;br /&gt;{                                                                            &lt;br /&gt;printf(" &lt;b&gt;Enter a string&lt;/b&gt; %d\n ", i + 1);                                          &lt;br /&gt;gets( temp );                                                                  &lt;br /&gt;len =&lt;b&gt; strlen&lt;/b&gt;( temp );                                                          &lt;br /&gt;&lt;br /&gt;arr_str[i] = (char*)&lt;b&gt;malloc&lt;/b&gt;(len);                                             &lt;br /&gt;&lt;b&gt;strcpy&lt;/b&gt;(arr_str[i], temp);                                                    &lt;br /&gt;}                                                                            &lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;The entered strings are\n&lt;/b&gt; ");                                         &lt;br /&gt;for(i = 0; i &amp;lt; S; i++)                                                             &lt;br /&gt;printf(" %s\n ", arr_str[i]);                                                  &lt;br /&gt;getch();                                                                     &lt;br /&gt;return 0;    &lt;br /&gt;&lt;br /&gt;}          &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter a string 1&lt;/b&gt;&lt;br /&gt;Do or Die&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter a string 2&lt;/b&gt;&lt;br /&gt;Love is life&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter a string 3&lt;/b&gt;&lt;br /&gt;Live and let live&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter a string 4&lt;/b&gt;&lt;br /&gt;Work is worship&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The entered strings are&lt;/b&gt;&lt;br /&gt;Do or Die&lt;br /&gt;Love is life&lt;br /&gt;Live and let live&lt;br /&gt;Work is worship&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-arithmetic.html" target="_blank"&gt;Sample C Program To Understand Working Of Address Concept.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-use-of-array.html" target="_blank"&gt;Sample C Program On Use Of Array &amp;amp; Pointer Concept Together.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-pointers-2.html" target="_blank"&gt;Sample C Program On Pointers &amp;amp; 2 - Dimensional Array.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-accept-add-ten.html" target="_blank"&gt;Sample C Program To Accept &amp;amp; Add Ten Numbers Using Pointers.&lt;/a&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3683009512811651684?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program On Strings Into Array Of Pointers'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3683009512811651684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-program-on-strings-into-array-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3683009512811651684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3683009512811651684'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-program-on-strings-into-array-of.html' title='Sample C Program On Strings Into Array Of Pointers'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-8424746895473201483</id><published>2011-10-12T20:37:00.000+05:30</published><updated>2011-10-12T20:37:03.124+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c program pointer'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='simple pointer program'/><category scheme='http://www.blogger.com/atom/ns#' term='sample program on address pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample programs on pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='c program on pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='pointers programs'/><category scheme='http://www.blogger.com/atom/ns#' term='programs based on pointers'/><title type='text'>Sample C Program On Pointers &amp; 2 - Dimensional Array.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void input(int**, int, int);                                                  &lt;br /&gt;void show(int**, int, int);                                                   &lt;br /&gt;&lt;br /&gt;main()                                                                        &lt;br /&gt;{                                                                             &lt;br /&gt;&lt;br /&gt;int a[3][3];                                                                 &lt;br /&gt;int row = 3, col = 3;                                                  &lt;br /&gt;clrscr();                                                                    &lt;br /&gt;&lt;br /&gt;input(( int** )a, row, col);                                                   &lt;br /&gt;show(( int** )a, row, col);                                         &lt;br /&gt;&lt;br /&gt;getch();                                                                     &lt;br /&gt;return 0;                                                                    &lt;br /&gt;&lt;br /&gt;}                                                                            &lt;br /&gt;&lt;br /&gt;void input(int **p, int r, int c)                                            &lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i, j;                                                                   &lt;br /&gt;for( i = 0; i &amp;lt; r; i++ )                                                         &lt;br /&gt;&amp;nbsp; {                                                                            &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for( j = 0; j &amp;lt; c; j++ )                                                          &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{                                                                            &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(" \n &lt;b&gt;Enter p[%d][%d] element&lt;/b&gt;: ", i, j);                                &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf(" %d ", *(p + i) + j);                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}                                                                            &lt;br /&gt;&amp;nbsp; }                                                                            &lt;br /&gt;&lt;br /&gt;}                                                                            &lt;br /&gt;&lt;br /&gt;void show(int **p, int r, int c)                                             &lt;br /&gt;{                                                                            &lt;br /&gt;&lt;br /&gt;int i, j;                                                                    &lt;br /&gt;printf(" \n &lt;b&gt;Matrix is&lt;/b&gt;\n ");                                                    &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; r; i++ )                                                             &lt;br /&gt;&amp;nbsp; {                                                                            &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for( j = 0; j &amp;lt; c; j++ )                                                             &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(" %d ", *(*(p + i) + j));                                                   &lt;br /&gt;&lt;br /&gt;printf(" \n ");                                                                &lt;br /&gt;&lt;br /&gt;&amp;nbsp; }                                                                            &lt;br /&gt;&lt;br /&gt;}                                   &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter p[0][0] element: 4&lt;br /&gt;Enter p[0][1] element: 6&lt;br /&gt;Enter p[0][2] element: 3&lt;br /&gt;Enter p[1][0] element: 2&lt;br /&gt;Enter p[1][1] element: 8&lt;br /&gt;Enter p[1][2] element: 7&lt;br /&gt;Enter p[2][0] element: 5&lt;br /&gt;Enter p[2][1] element: 1&lt;br /&gt;Enter p[2][2] element: 9&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Matrix is&lt;/b&gt;&lt;br /&gt;4 &amp;nbsp; 6 &amp;nbsp; 3&lt;br /&gt;2 &amp;nbsp; 8 &amp;nbsp; 7&lt;br /&gt;5 &amp;nbsp; 1 &amp;nbsp; 9&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-8424746895473201483?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program On Pointers &amp; 2 - Dimensional Array.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/8424746895473201483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-on-pointers-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8424746895473201483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8424746895473201483'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-on-pointers-2.html' title='Sample C Program On Pointers &amp; 2 - Dimensional Array.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3874958771530144642</id><published>2011-10-12T20:12:00.000+05:30</published><updated>2011-10-12T20:12:30.277+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c program pointer'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='simple pointer program'/><category scheme='http://www.blogger.com/atom/ns#' term='sample program on address pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample programs on pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='c program on pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='pointers programs'/><category scheme='http://www.blogger.com/atom/ns#' term='programs based on pointers'/><title type='text'>Sample C Program On Use  Of Array &amp; Pointer Concept Together.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;                                                            &lt;br /&gt;#define S 5                                                                   &lt;br /&gt;&lt;br /&gt;main()                                                                        &lt;br /&gt;{                                                                             &lt;br /&gt;&lt;br /&gt;int arr[S], i;                                                       &lt;br /&gt;int *ptr = arr;                                                               &lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;Enter %d elements of array&lt;/b&gt; \n ", S);                                    &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; S; i++ )                                                             &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;scanf(" %d ", ptr + i );                                                           &lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;Array elements are&lt;/b&gt; \n " );                                               &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; S; i++ )                                                              &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" %d %d %d %d \n ", *(ptr + i), *(i + ptr),ptr[i],i[ptr] );                    &lt;br /&gt;&lt;br /&gt;return 0;                                                                     &lt;br /&gt;&lt;br /&gt;}                 &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter 5 elements of array&lt;/b&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;4&lt;br /&gt;7&lt;br /&gt;5&lt;br /&gt;&lt;b&gt;Array elements are&lt;/b&gt;&lt;br /&gt;1 1 1 1&lt;br /&gt;2 2 2 2&lt;br /&gt;4 4 4 4&lt;br /&gt;7 7 7 7&lt;br /&gt;5 5 5 5&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3874958771530144642?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program On Use  Of Array &amp; Pointer Concept Together.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3874958771530144642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-on-use-of-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3874958771530144642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3874958771530144642'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-on-use-of-array.html' title='Sample C Program On Use  Of Array &amp; Pointer Concept Together.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-8941497646410935490</id><published>2011-10-12T19:45:00.000+05:30</published><updated>2011-10-12T19:45:56.805+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c program pointer'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='simple pointer program'/><category scheme='http://www.blogger.com/atom/ns#' term='sample program on address pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample programs on pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='c program on pointers'/><category scheme='http://www.blogger.com/atom/ns#' term='pointers programs'/><category scheme='http://www.blogger.com/atom/ns#' term='programs based on pointers'/><title type='text'>Sample C Program On Arithmetic Calculations Using Pointers.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;                                                       &lt;br /&gt;&lt;br /&gt;main()                                                                     &lt;br /&gt;{                                                                           &lt;br /&gt;&lt;br /&gt;int a=10, *pa;                                                            &lt;br /&gt;clrscr();                                                                   &lt;br /&gt;&lt;br /&gt;pa = &amp;amp;a;                                                                  &lt;br /&gt;printf(" &lt;b&gt;Address&lt;/b&gt; = %u \n ", pa++ );                                            &lt;br /&gt;printf(" &lt;b&gt;After pa++ Address&lt;/b&gt; = %u \n ", pa++ );                                  &lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;After one more pa++ Address&lt;/b&gt; = %u \n", pa );                          &lt;br /&gt;printf(" &lt;b&gt;Value of a&lt;/b&gt; = %d \n", *( pa - 2 ) );                                       &lt;br /&gt;&lt;br /&gt;getch();                                                                    &lt;br /&gt;return 0;                                                                   &lt;br /&gt;&lt;br /&gt;}           &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Address&lt;/b&gt; = 65524&lt;br /&gt;&lt;b&gt;After pa++ Address&lt;/b&gt; = 65526&lt;br /&gt;&lt;b&gt;After one more pa++ Address&lt;/b&gt; = 65528&lt;br /&gt;&lt;b&gt;Value of a&lt;/b&gt; = 10&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-8941497646410935490?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program On Arithmetic Calculations Using Pointers.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/8941497646410935490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-on-arithmetic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8941497646410935490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8941497646410935490'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-on-arithmetic.html' title='Sample C Program On Arithmetic Calculations Using Pointers.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-5901343753750465288</id><published>2011-10-11T00:00:00.000+05:30</published><updated>2011-10-11T00:00:39.307+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c programs on strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c programs on string'/><category scheme='http://www.blogger.com/atom/ns#' term='converts an ascii character array to an integer'/><category scheme='http://www.blogger.com/atom/ns#' term='c program to swap'/><category scheme='http://www.blogger.com/atom/ns#' term='c program to covert string to interger'/><category scheme='http://www.blogger.com/atom/ns#' term='atoi function'/><title type='text'>Sample C Program To Convert String To An Integer Using atoi() Function.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i;&lt;br /&gt;i = &lt;b&gt;atoi&lt;/b&gt;(" 100");&lt;br /&gt;&lt;br /&gt;printf(" The integer value is: %d ", i);&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;return 0;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The integer value is: 100&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-5901343753750465288?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program To Convert String To An Integer Using atoi() Function.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/5901343753750465288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5901343753750465288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5901343753750465288'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html' title='Sample C Program To Convert String To An Integer Using atoi() Function.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-6445450470897219525</id><published>2011-10-10T23:53:00.000+05:30</published><updated>2011-10-10T23:53:35.235+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='program on strings with output'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs on strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c programs on string'/><category scheme='http://www.blogger.com/atom/ns#' term='c program on array of strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c program on arrays and strings'/><category scheme='http://www.blogger.com/atom/ns#' term='display array of strings'/><title type='text'>Sample C Program To Display Array Of Strings.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;clrscr();&lt;br /&gt;char arr[3][12] = { "Soft", "India" , "technologies" };&lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;Array of String is&lt;/b&gt; = %s, %s, %s\n ", arr[0], arr[1], arr[2] );&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Array of String is&lt;/b&gt; =  Soft, India, technologies&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-6445450470897219525?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program To Display Array Of Strings.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/6445450470897219525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6445450470897219525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6445450470897219525'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html' title='Sample C Program To Display Array Of Strings.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4236551423698411131</id><published>2011-10-10T23:38:00.000+05:30</published><updated>2011-10-10T23:38:28.596+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c programs on string'/><category scheme='http://www.blogger.com/atom/ns#' term='program to sort strings with output'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs on strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='sort strings using c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c program to swap'/><category scheme='http://www.blogger.com/atom/ns#' term='c program on strcmp function'/><title type='text'>Sample C Program To Sort A Given Number Of Strings.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;h3&gt;C Program To Sort A Given Number Of Strings.&lt;br /&gt;&lt;/h3&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include &amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;char str[4][10];&lt;br /&gt;int i;&lt;br /&gt;clrscr();&lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; 4; i++ )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(“ \n&lt;b&gt;Enter name &lt;/b&gt;%d: ”, i+1 );&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;scanf(“ %s ”, str[i] );&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;printf(“\n&lt;b&gt; Original Order&lt;/b&gt;\n”);&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; 4; i++ )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(“ %s\t ”, str[i] );&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; 4; i++ )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; for(j = i + 1; j &amp;lt; 4; j++ )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( strcmp(str[i], str[j]) &amp;gt; 0 )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strcpy( temp, str[i] );&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strcpy( temp, str[i], str[j] );&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strcpy( str[j], temp );&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;printf(“\n &lt;b&gt;Sorted Order&lt;/b&gt;\n”);&lt;br /&gt;for( i = 0; i &amp;lt; 4; i++ )&lt;br /&gt;&amp;nbsp; &amp;nbsp; printf(“ %s\t ”, str[i]);&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter name 1: John&lt;br /&gt;Enter name 2: Mac&lt;br /&gt;Enter name 3: William&lt;br /&gt;Enter name 4: Allen&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Original Order&lt;/b&gt;&lt;br /&gt;John  Mac  William  Allen&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Sorted Order&lt;/b&gt;&lt;br /&gt;Allen  John  Mac  William&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4236551423698411131?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program To Sort A Given Number Of Strings.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4236551423698411131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4236551423698411131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4236551423698411131'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html' title='Sample C Program To Sort A Given Number Of Strings.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3201616607791464890</id><published>2011-10-09T16:50:00.001+05:30</published><updated>2011-10-10T00:18:03.092+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='swapping of two strings'/><category scheme='http://www.blogger.com/atom/ns#' term='swap two strings with output'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs on strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='sample program on strcpy function'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c programs on string'/><category scheme='http://www.blogger.com/atom/ns#' term='swap two strings'/><category scheme='http://www.blogger.com/atom/ns#' term='c program to swap'/><title type='text'>Sample C Program To Swap Two Strings Using strcpy() Function.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include &amp;lt;string.h&amp;gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;Char s1[10], S2[10], temp[10];&lt;br /&gt;clrscr();&lt;br /&gt;&lt;br /&gt;printf(“ &lt;b&gt;Enter first name&lt;/b&gt;\n ”);&lt;br /&gt;scanf(“ %s ”, s1);&lt;br /&gt;&lt;br /&gt;printf(“&lt;b&gt; Enter second name&lt;/b&gt;\n ”);&lt;br /&gt;scanf(“ %s ”, s2);&lt;br /&gt;&lt;br /&gt;printf(“ &lt;b&gt;Before swapping&lt;/b&gt;\n ”);&lt;br /&gt;printf(“ s1 = %s\ts2 = %s\n ”, s1, s2);&lt;br /&gt;&lt;br /&gt;strcpy(temp, s1);&lt;br /&gt;strcpy(s1, s2);&lt;br /&gt;strcpy(s2, temp);&lt;br /&gt;&lt;br /&gt;printf(“ &lt;b&gt;After swapping&lt;/b&gt;\n ”);&lt;br /&gt;printf(“ s1 = %s\ts2 = %s\n ”, s1,s2);&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter first name&lt;/b&gt;&lt;br /&gt;Lavanya&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter second name&lt;/b&gt;&lt;br /&gt;Suchita&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Before swapping&lt;/b&gt;&lt;br /&gt;s1 = Lavanya s2 = Suchita&lt;br /&gt;&lt;br /&gt;&lt;b&gt;After swapping&lt;/b&gt;&lt;br /&gt;s1 = Suchita s2 = Lavanya&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3201616607791464890?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program To Swap Two Strings Using strcpy() Function.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3201616607791464890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3201616607791464890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3201616607791464890'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-swap-two-strings.html' title='Sample C Program To Swap Two Strings Using strcpy() Function.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-1745897682701039832</id><published>2011-10-09T16:32:00.001+05:30</published><updated>2011-10-09T16:33:07.482+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c program to multiply two matrices'/><category scheme='http://www.blogger.com/atom/ns#' term='multiply 2 3*3 matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='c program arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='interview c programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c program matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs on matrices'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs in intreviews'/><category scheme='http://www.blogger.com/atom/ns#' term='c program asked in interviews'/><title type='text'>Sample C Program To Multiply Two Matrix.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;C Program To Multiply Two 3 * 3 Matrix :&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;  &lt;br /&gt;&lt;br /&gt;main()                                                                        &lt;br /&gt;{                                                                             &lt;br /&gt;int a[3][3], b[3][3], c[3][3];                                          &lt;br /&gt;int i, j, k;                                                            &lt;br /&gt;clrscr();                                                               &lt;br /&gt;&lt;br /&gt;printf("&lt;b&gt; Enter elements of first matrix&lt;/b&gt;\n ");                             &lt;br /&gt;for( i = 0; i &amp;lt; 3; i++ )                                                      &lt;br /&gt;&amp;nbsp; {                                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; for( j = 0; j &amp;lt; 3; j++ )                                                      &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {                                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" \n Enter a[%d] [%d] element: ", i, j);                          &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scanf(" %d ", &amp;amp;a[i] [j] );                                                 &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }                                                                       &lt;br /&gt;&amp;nbsp; }                                                                             &lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;Enter elements of second matrix&lt;/b&gt;\n ");                            &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; 3; i++ )                                                        &lt;br /&gt;&amp;nbsp; {                                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; for( j = 0; j &amp;lt; 3; j++ )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {                                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" \n Enter b[%d] [%d] element: ", i, j );                          &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scanf(" %d ", &amp;amp;b[i][j]);                                                  &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }                                                                       &lt;br /&gt;&amp;nbsp; }                                                                             &lt;br /&gt;&lt;br /&gt;printf(" \n\n&amp;nbsp;&lt;b&gt;First matrix is&lt;/b&gt;\n\n ");                                         &lt;br /&gt;for( i = 0; i &amp;lt; 3; i++ )                                                      &lt;br /&gt;&amp;nbsp; {                                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for( j = 0; j &amp;lt; 3; j++ )                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" %2d ", a[i][j]);                                                 &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" \n ");                                                           &lt;br /&gt;&amp;nbsp; }                                                                       &lt;br /&gt;&lt;br /&gt;printf(" \n\n&lt;b&gt;Second matrix is&lt;/b&gt;\n ");                                       &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; 3; i++ )                                                        &lt;br /&gt;&amp;nbsp; {                                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for( j = 0; j &amp;lt; 3; j++ )                                                        &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(" %2d ", b[i][j]);                                                 &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" \n ");                                                           &lt;br /&gt;&amp;nbsp; }                                                                       &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; 3; i++ )                                                         &lt;br /&gt;&amp;nbsp; {                                                                        &lt;br /&gt;&amp;nbsp; &amp;nbsp; for( j = 0; j &amp;lt; 3; j++ )                                                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{                                                                        &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c[i][j] = 0;                                                             &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for( k = 0; k &amp;lt; 3; k++ )                                                        &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c[i][j] = c[i][j] + a[i][k] * b[k][j];                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}                                                                        &lt;br /&gt;&amp;nbsp; }                                                                            &lt;br /&gt;&lt;br /&gt;printf(" \n\n &lt;b&gt;Multiplication of two matrices is&lt;/b&gt;\n ");                       &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; 3; i++ )                                                          &lt;br /&gt;&amp;nbsp; {                                                                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for(j = 0; j &amp;lt; 3; j++ )                                                          &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(" %2d ", c[i][j]);                                                   &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" \n ");                                                             &lt;br /&gt;&amp;nbsp; }                                                                         &lt;br /&gt;&lt;br /&gt;getch();                                                                  &lt;br /&gt;}           &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter a[0] [0] element: 26 &lt;br /&gt;Enter a[0] [1] element: 45&lt;br /&gt;Enter a[0] [2] element: 94&lt;br /&gt;Enter a[1] [0] element: 28&lt;br /&gt;Enter a[1] [1] element: 91&lt;br /&gt;Enter a[1] [2] element: 62&lt;br /&gt;Enter a[2] [0] element: 83&lt;br /&gt;Enter a[2] [1] element: 16&lt;br /&gt;Enter a[2] [2] element: 69&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter elements of second matrix&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter b[0] [0] element: 29&lt;br /&gt;Enter b[0] [1] element: 39&lt;br /&gt;Enter b[0] [2] element: 32&lt;br /&gt;Enter b[1] [0] element: 28&lt;br /&gt;Enter b[1] [1] element: 73&lt;br /&gt;Enter b[1] [2] element: 18&lt;br /&gt;Enter b[2] [0] element: 73&lt;br /&gt;Enter b[2] [1] element: 27&lt;br /&gt;Enter b[2] [2] element: 93&lt;br /&gt;&lt;br /&gt;&lt;b&gt;First matrix is&lt;/b&gt;&lt;br /&gt;26 &amp;nbsp;45 &amp;nbsp;94&lt;br /&gt;28 &amp;nbsp;91 &amp;nbsp;62&lt;br /&gt;83 &amp;nbsp;16 &amp;nbsp;69&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Second matrix is&lt;/b&gt;&lt;br /&gt;29 &amp;nbsp;39 &amp;nbsp;32&lt;br /&gt;28 &amp;nbsp;73 &amp;nbsp;18&lt;br /&gt;73 &amp;nbsp;27 &amp;nbsp;93&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Multiplication of two matrices is&lt;/b&gt;&lt;br /&gt;8876 &amp;nbsp;6837 &amp;nbsp;10384&lt;br /&gt;7886 &amp;nbsp;9409 &amp;nbsp;8300&lt;br /&gt;7892 &amp;nbsp;6268 &amp;nbsp;9361&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-1745897682701039832?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program To Multiply Two Matrix.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/1745897682701039832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-multiply-two-matrix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1745897682701039832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1745897682701039832'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-multiply-two-matrix.html' title='Sample C Program To Multiply Two Matrix.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-7780375972447306925</id><published>2011-10-09T15:39:00.000+05:30</published><updated>2011-10-09T15:39:49.164+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c programs in interviews'/><category scheme='http://www.blogger.com/atom/ns#' term='c language interview programs'/><category scheme='http://www.blogger.com/atom/ns#' term='frequently asked c programs'/><category scheme='http://www.blogger.com/atom/ns#' term='c program transpose matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='c program to find transpose of a matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='c program matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='c array programs'/><title type='text'>Sample C Program To Transpose A Matrix .</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;h3&gt;C Program To Find Transpose a 3 * 2 matrix.&lt;br /&gt;&lt;/h3&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;      &lt;br /&gt;&lt;br /&gt;main()                                                                        &lt;br /&gt;{                                                                             &lt;br /&gt;&lt;br /&gt;int arr[3] [2];                                                     &lt;br /&gt;int i, j;                                                           &lt;br /&gt;clrscr();                                                           &lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;Enter the 6 elements of matrix\&lt;/b&gt;n ");                         &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; 3; i++ )                                                    &lt;br /&gt;&amp;nbsp; &amp;nbsp;for( j = 0; j &amp;lt; 2; j++ )                                                    &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scanf(" %d ", &amp;amp;arr[i] [j]);                                           &lt;br /&gt;&amp;nbsp; &lt;br /&gt;printf(" &lt;b&gt;The matrix is&lt;/b&gt;\n ");&lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; 3; i++ )                                                    &lt;br /&gt;&amp;nbsp; {                                                                   &lt;br /&gt;&amp;nbsp; &amp;nbsp; for( j = 0; j &amp;lt; 2; j++ )                                                    &lt;br /&gt;&amp;nbsp; &amp;nbsp; printf(" %d ", arr[i] [j]);                                          &lt;br /&gt;&amp;nbsp; &amp;nbsp; printf(" \n ");                                                       &lt;br /&gt;&amp;nbsp; }                                                                   &lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;The Transposed Matrix is&lt;/b&gt;\n ");                                &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; 2; i++ )                                                    &lt;br /&gt;&amp;nbsp; {                                                                   &lt;br /&gt;&amp;nbsp; &amp;nbsp; for( j = 0; j &amp;lt; 3; j++ )                                                    &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(" %d ", arr[j] [i]);                                           &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf("\n");                                                       &lt;br /&gt;&amp;nbsp; }                                                                   &lt;br /&gt;&lt;br /&gt;getch();                                                            &lt;br /&gt;&lt;br /&gt;}                                                                             &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enter the 6 elements of matrix&lt;/b&gt;&lt;br /&gt;34&lt;br /&gt;63&lt;br /&gt;64&lt;br /&gt;92&lt;br /&gt;16&lt;br /&gt;82&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The matrix is&lt;/b&gt;&lt;br /&gt;34 &amp;nbsp;63&lt;br /&gt;64 &amp;nbsp;92&lt;br /&gt;16 &amp;nbsp;82&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The Transposed Matrix is&lt;/b&gt;&lt;br /&gt;34 &amp;nbsp;64 &amp;nbsp;16&lt;br /&gt;63 &amp;nbsp;92 &amp;nbsp;82&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-7780375972447306925?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program To Transpose A Matrix .'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/7780375972447306925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-transpose-matrix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7780375972447306925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7780375972447306925'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-transpose-matrix.html' title='Sample C Program To Transpose A Matrix .'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-2032349525339339157</id><published>2011-10-09T15:23:00.000+05:30</published><updated>2011-10-09T15:23:52.611+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview question'/><category scheme='http://www.blogger.com/atom/ns#' term='Sample c program on matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='c language interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c program on 2 dim matrix'/><category scheme='http://www.blogger.com/atom/ns#' term='C program On Arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='c array programs'/><title type='text'>Sample C Program On Two Dimensional (2-D) Array.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;                                                            &lt;br /&gt;&lt;br /&gt;main()                                                                        &lt;br /&gt;{                                                                             &lt;br /&gt;&lt;br /&gt;int arr [3] [4];                                                          &lt;br /&gt;int i, j;                                                                 &lt;br /&gt;clrscr();                                                                 &lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; 3; i++)                                                        &lt;br /&gt;&amp;nbsp; {                                                                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for(j = 0; j &amp;lt; 4; j++)                                                        &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{                                                                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(" \n Enter the arr[%d] [%d] element: ", i, j);                     &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf(" %d ", &amp;amp;arr[i][j] );&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}                                                                         &lt;br /&gt;&amp;nbsp; }                                                                             &lt;br /&gt;&lt;br /&gt;printf(" Array elements are\n ");                                           &lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; 3; i++)                                                        &lt;br /&gt;&amp;nbsp; {                                                                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for(j = 0; j &amp;lt; 4; j++)                                                        &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" %d \t ", arr[i][j] );                                     &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" \n ");                                                             &lt;br /&gt;&amp;nbsp; }                                                                         &lt;br /&gt;&lt;br /&gt;getch();                                                                  &lt;br /&gt;}                                                                             &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the arr[0] [0] element: 678&lt;br /&gt;&lt;br /&gt;Enter the arr[0] [1] element: 543&lt;br /&gt;&lt;br /&gt;Enter the arr[0] [2] element: 234&lt;br /&gt;&lt;br /&gt;Enter the arr[0] [3] element: 543&lt;br /&gt;&lt;br /&gt;Enter the arr[1] [0] element: 124&lt;br /&gt;&lt;br /&gt;Enter the arr[1] [1] element: 432&lt;br /&gt;&lt;br /&gt;Enter the arr[1] [2] element: 456&lt;br /&gt;&lt;br /&gt;Enter the arr[1] [3] element: 677&lt;br /&gt;&lt;br /&gt;Enter the arr[2] [0] element: 321&lt;br /&gt;&lt;br /&gt;Enter the arr[2] [1] element: 564&lt;br /&gt;&lt;br /&gt;Enter the arr[2] [2] element: 432&lt;br /&gt;&lt;br /&gt;Enter the arr[2] [3] element: 654&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Array elements are&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;678 543 234 543&lt;br /&gt;124 432 456 677&lt;br /&gt;321 564 432 654&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-2032349525339339157?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program On Two Dimensional (2-D) Array.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/2032349525339339157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-on-two-dimensional-2-d.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2032349525339339157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2032349525339339157'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-on-two-dimensional-2-d.html' title='Sample C Program On Two Dimensional (2-D) Array.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-8998979479218624574</id><published>2011-10-09T15:09:00.000+05:30</published><updated>2011-10-09T15:09:54.535+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview question'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c language interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C program On Arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='Sample c programs On arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='c array programs'/><title type='text'>Sample C Program Counting Frequencies Of Elements Of Array.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include  &amp;lt;stdlib.h&amp;gt;                                                             &lt;br /&gt;#define S 6                                                                   &lt;br /&gt;&lt;br /&gt;main()                                                                        &lt;br /&gt;{                                                                             &lt;br /&gt;&lt;br /&gt;int a[S], freq[S];                                                      &lt;br /&gt;int i, j, k,n = S;                                                      &lt;br /&gt;clrscr();                                                               &lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; S; i++)                                                        &lt;br /&gt;&amp;nbsp; {                                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" \nEnter a[%d] element: ", i);                                   &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;scanf(" %d ", &amp;amp;a[i]);                                                     &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;freq[i] = 1;                                                            &lt;br /&gt;&amp;nbsp; }                                                                       &lt;br /&gt;&lt;br /&gt;clrscr();                                                               &lt;br /&gt;printf(" Original Array\n ");                                             &lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; S; i++)                                                        &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; printf(" %d\t ", a[i]);&lt;br /&gt;&lt;br /&gt;&lt;b&gt;/* Main Logic Starts Here */                                              &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)                                                       &lt;br /&gt;&amp;nbsp; for(j = i + 1; j &amp;lt; n; j++)                                                      &lt;br /&gt;&amp;nbsp; &amp;nbsp; {                                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(a[i] == a[j])                                                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {                                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(k = j; k &amp;lt; n; k++)                                                        &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a[k] = a[k+1];                                                           &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;freq[i]++;                                                              &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;n--;                                                                    &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }                                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; }                                                                         &lt;br /&gt;&lt;br /&gt;printf(" \nArray with freq\n ");                                              &lt;br /&gt;printf(" \nElement\tFreq\n ");                                                &lt;br /&gt;&lt;br /&gt;for(i = 0; i &amp;lt; n; i++)                                                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; printf(" %d\t%d\n ", a[i], freq[i]);                                          &lt;br /&gt;&lt;br /&gt;getch();                                                                    &lt;br /&gt;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter a[0] element: 3&lt;br /&gt;Enter a[1] element: 4&lt;br /&gt;Enter a[2] element: 7&lt;br /&gt;Enter a[3] element: 8&lt;br /&gt;Enter a[4] element: 4&lt;br /&gt;Enter a[5] element: 6&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Original Array&lt;/b&gt;&lt;br /&gt;3       4       7       8       4       6&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Array with freq&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Element Freq&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3       1&lt;br /&gt;4       2&lt;br /&gt;7       1&lt;br /&gt;8       1&lt;br /&gt;6       1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-8998979479218624574?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program Counting Frequencies Of Elements Of Array.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/8998979479218624574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-counting-frequencies.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8998979479218624574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8998979479218624574'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-counting-frequencies.html' title='Sample C Program Counting Frequencies Of Elements Of Array.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-5518263402875164889</id><published>2011-10-09T14:47:00.001+05:30</published><updated>2011-10-09T14:49:19.394+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview question'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c language interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C program On Arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='Sample c programs On arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='c array programs'/><title type='text'>Sample C Program To Insert An Element In An Array.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;3. /* Program for insertion of an element in an array*/&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include  &amp;lt;stdlib.h&amp;gt;                                                          &lt;br /&gt;#define S 7                                                                   &lt;br /&gt;&lt;br /&gt;main()                                                                        &lt;br /&gt;{                                                                             &lt;br /&gt;&lt;br /&gt;int arr[10];                                                              &lt;br /&gt;int i, pos, num, j;                                                       &lt;br /&gt;clrscr();                                                                 &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; S; i++ )                                                          &lt;br /&gt;&amp;nbsp; {                                                                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf("\n Enter arr[%d] element: ", i);                                  &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;scanf(" %d ", &amp;amp;arr[i] );                                                     &lt;br /&gt;&amp;nbsp; }                                                                         &lt;br /&gt;&lt;br /&gt;clrscr();                                                                 &lt;br /&gt;printf(" \n\nArray is \n\n ");                                              &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; S; i++ )                                                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" %2d ", arr[i] );                                                    &lt;br /&gt;&lt;br /&gt;printf(" \nEnter the element which you want to insert\n ");                 &lt;br /&gt;scanf(" %d ", &amp;amp;num );                                                        &lt;br /&gt;printf(" \nEnter the position (first is 0)\n " );    &lt;br /&gt;scanf("%d", &amp;amp;pos);                                                        &lt;br /&gt;&lt;br /&gt;if( pos &amp;gt; = 0 &amp;amp;&amp;amp; pos &amp;lt;= 9)                                                     &lt;br /&gt;&amp;nbsp; {                                                                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for( j = S;j &amp;gt; pos; j-- )                                                       &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;arr[j] = arr[j-1];                                                          &lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;arr[j] = num;                                                               &lt;br /&gt;}                                                                         &lt;br /&gt;else                                                                      &lt;br /&gt;&amp;nbsp; {                                                                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; printf(" Wrong position selected\n ");                                      &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; getch();                                                                  &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;exit(1);                                                                  &lt;br /&gt;&amp;nbsp; }                                                                         &lt;br /&gt;&lt;br /&gt;printf(" Array after insertion\n ");                                        &lt;br /&gt;for(i = 0; i &amp;lt; S; i++ )                                                          &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" %d ", arr[i]);  &lt;br /&gt;&lt;br /&gt;getch();                                                                  &lt;br /&gt;}                                                                             &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter arr[0] element: 4&lt;br /&gt;Enter arr[1] element: 7&lt;br /&gt;Enter arr[2] element: 3&lt;br /&gt;Enter arr[3] element: 6&lt;br /&gt;Enter arr[4] element: 8&lt;br /&gt;Enter arr[5] element: 4&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Array is&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;4 7 3 6 8 4&lt;br /&gt;&lt;br /&gt;Enter the element which you want to insert&lt;br /&gt;&lt;br /&gt;3&lt;br /&gt;&lt;br /&gt;Enter the position (first is 0)&lt;br /&gt;&lt;br /&gt;4&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Array after insertion&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;4 7 3 6 8 4 4&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-5518263402875164889?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program To Insert An Element In An Array.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/5518263402875164889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-insert-element-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5518263402875164889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5518263402875164889'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-to-insert-element-in.html' title='Sample C Program To Insert An Element In An Array.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-5171485359386286152</id><published>2011-10-09T14:19:00.000+05:30</published><updated>2011-10-09T14:19:17.073+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview question'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c language interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C program On Arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='Sample c programs On arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='c array programs'/><title type='text'>Sample C Program For Deleting An Element From An Array.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include  &amp;lt;stdlib.h&amp;gt;                                                          &lt;br /&gt;#define S 6                                                                   &lt;br /&gt;&lt;br /&gt;main()                                                                        &lt;br /&gt;{                                                                             &lt;br /&gt;&lt;br /&gt;int arr[S];                                                           &lt;br /&gt;int i, pos, num, j;                                                   &lt;br /&gt;clrscr();                                                             &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; S; i++ )                                                      &lt;br /&gt;&amp;nbsp; {                                                             &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" \nEnter a[%d] element: ", i );                         &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;scanf(" %d ", &amp;amp;arr[i] );                                         &lt;br /&gt;&amp;nbsp; }                                                             &lt;br /&gt;&lt;br /&gt;printf(" \n\nArray is\n\n ");                                          &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; S; i++ )                                                     &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" %2d ", arr[i] );                                       &lt;br /&gt;&lt;br /&gt;printf(" \nEnter the position of the element which you would like to delete\n");&lt;br /&gt;&lt;br /&gt;scanf(" %d ", &amp;amp;pos );                                                   &lt;br /&gt;&lt;br /&gt;if( pos &amp;gt; = S + 1 )                                                   &lt;br /&gt;&amp;nbsp; &amp;nbsp; printf(" Deletion not possible.\n "); &lt;br /&gt;else&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; for ( i = pos - 1 ; i &amp;lt; S - 1 ; i++ )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array[c] = array[i+1];&lt;br /&gt;&amp;nbsp; &amp;nbsp; printf(" Array after deletion\n");&lt;br /&gt;&amp;nbsp; &amp;nbsp; for( i = 0 ; i &amp;lt; S - 1 ; i++ )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" %d\n ", array[i] );&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;getch();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;Enter a[0] element: 1&lt;br /&gt;&lt;br /&gt;Enter a[1] element: 6&lt;br /&gt;&lt;br /&gt;Enter a[2] element: 7&lt;br /&gt;&lt;br /&gt;Enter a[3] element: 4&lt;br /&gt;&lt;br /&gt;Enter a[4] element: 3&lt;br /&gt;&lt;br /&gt;Enter a[5] element: 8&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Array is&lt;/b&gt;&lt;br /&gt;1 6 7 4 3 8&lt;br /&gt;&lt;b&gt;Enter the position of the element which you want to delete&lt;/b&gt;&lt;br /&gt;4&lt;br /&gt;&lt;b&gt;Array after deletion&lt;/b&gt;&lt;br /&gt;16748&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-5171485359386286152?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program For Deleting An Element From An Array.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/5171485359386286152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-for-deleting-element.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5171485359386286152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5171485359386286152'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-for-deleting-element.html' title='Sample C Program For Deleting An Element From An Array.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3381440026475600559</id><published>2011-10-09T13:51:00.001+05:30</published><updated>2011-10-09T13:52:42.515+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview question'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c language interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C program On Arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='Sample c programs On arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='c array programs'/><title type='text'>Sample C Program For Entering An Array Of Elements.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;                                                             &lt;br /&gt;#define S 5                                                                   &lt;br /&gt;&lt;br /&gt;main()                                                                        &lt;br /&gt;{                                                                             &lt;br /&gt;&lt;br /&gt;int a[S];                                                                     &lt;br /&gt;int i;                                                                  &lt;br /&gt;clrscr();                                                               &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; S; i++ )&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; printf("\n Enter a[%d] element: ",i);&lt;br /&gt;&amp;nbsp; &amp;nbsp; scanf("%d", &amp;amp;a[i]);                                                                                                                          &lt;br /&gt;}&lt;br /&gt;printf("&lt;b&gt;Array&lt;/b&gt; elements are\n");                                       &lt;br /&gt;&lt;br /&gt;for( i = 0; i &amp;lt; S; i++ )                                                      &lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; printf("a[%d] = %d\n", i, a[i]);                                      &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;getch();                                                              &lt;br /&gt;}                                                                           &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OUTPUT:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter a[0] element: 4&lt;br /&gt;Enter a[1] element: 3&lt;br /&gt;Enter a[2] element: 6&lt;br /&gt;Enter a[3] element: 7&lt;br /&gt;Enter a[4] element: 9&lt;br /&gt;&lt;b&gt;Array elements are&lt;/b&gt;&lt;br /&gt;a[0] = 4&lt;br /&gt;a[1] = 3&lt;br /&gt;a[2] = 6&lt;br /&gt;a[3] = 7&lt;br /&gt;a[4] = 9&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3381440026475600559?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program For Entering An Array Of Elements.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3381440026475600559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-for-entering-array-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3381440026475600559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3381440026475600559'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/10/sample-c-program-for-entering-array-of.html' title='Sample C Program For Entering An Array Of Elements.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4134675421890545523</id><published>2011-09-20T23:54:00.001+05:30</published><updated>2011-10-19T21:08:28.476+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 20.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;96) What is a stack?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;memory area that stores the return address of the functions,&lt;/b&gt; arguments passed to functions, and local variables of functions is called a stack.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;97) What is meant by overflow in C++?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If one tries to insert a node into a linked list, when there is no memory available, it is called ‘Overflow’.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;98) What is an infix expression?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An expression in which operators are placed in between the operands is called an infix expression.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;99) What do you mean by static binding?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Static binding or early binding is the process of &lt;b&gt;selection of a particular function for a particular call at the compile time.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;100) What do you mean by a node?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A part of a linked list storing information of an element as well as &lt;b&gt;having a pointer to the next node is called a node.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 15.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 16.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 17.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 18.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html" target="_blank"&gt;"&amp;gt; Frequently Asked C++/OOPS Interview Questions With Answers – 19.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4134675421890545523?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 20.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4134675421890545523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4134675421890545523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4134675421890545523'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 20.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-2606593686974259465</id><published>2011-09-20T23:52:00.001+05:30</published><updated>2011-10-19T21:07:40.932+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 19.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;91) State conditions under which binary search is applicable.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For binary search, &lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;The list must be sorted.&lt;/li&gt;&lt;li&gt;Lower bound and upper bound of the list must be known.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;92) What is a linked list?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;linked list is a collection of data elements&lt;/b&gt;, called nodes pointing to the next nodes by means of pointers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;93) Differentiate between functions read() and write().&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The read() function lest one read a unit of information from a file and the write() function lets one write a unit of information to a file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;94) What is a null pointer?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;pointer that does not point to any data object is called a null pointer&lt;/b&gt;, In C++, the null pointer can be represented by the constant 0.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;95) What is a memory leak?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A situation in which &lt;b&gt;there lie so many orphaned memory-blocks that are still allocated but no pointers are referencing to them&lt;/b&gt;, are referred to as a memory leak.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 15.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 16.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 17.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 18.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 20.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-2606593686974259465?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 19.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/2606593686974259465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2606593686974259465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2606593686974259465'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 19.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3221838816163296130</id><published>2011-09-20T23:49:00.002+05:30</published><updated>2011-10-19T21:06:41.581+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 18.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;86) Name the streams generally used for file operations.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Ifstream, ofstream and fstream.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;87) What do you mean by ‘this’ pointer?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The ‘this’ pointer is an&lt;b&gt; already created object pointer that points to currently calling object.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;88) What is a data structure?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A named group of data of different data types which can be processed as a single unit is referred to as a data structure. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;89) List four major operations associated with linear data structures.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Four major operations performed on data structures are &lt;b&gt;searching, sorting, traversing and inserting.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;90) What are trees in C++?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Trees are &lt;b&gt;non-linear data structures having a hierarchical relationship between various elements called nodes.&lt;/b&gt; Topmost node is called the root of the tree and the bottommost nodes are called leaves of the tree. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 16.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 17.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 18.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 20.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3221838816163296130?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 18.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3221838816163296130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3221838816163296130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3221838816163296130'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 18.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3370853272259790750</id><published>2011-09-20T23:46:00.001+05:30</published><updated>2011-10-19T21:05:28.294+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 18.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;81) What is a nested structure ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;nested structure is a structure having another structure as its member element.&lt;/b&gt; It finds a wide range of applications in C++ components like linked lists.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;82) How are arrays and structures related to each other ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Arrays bring together a group of items of the same data type whereas structures bring together a group of related data items of any data type.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;83) How are structures and classes related to each other ?&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OR&lt;/b&gt;&lt;br /&gt;&lt;b&gt; What is the difference between structure and class?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Structure is &lt;b&gt;actually a class in C++&lt;/b&gt; declared with keyword struct. By default, all members are public in a structure, while on the other hand, all members are private by default in classes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;84) What is the difference between get and getline member functions ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;get() and getline() functions are virtually identical to one another.&lt;/b&gt; But the difference between the two of them is that getline() reads and removes the newline character from the input stream if its is encountered, which is not done by the get() function.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;85) Differentiate between ifstream class and ofstream class?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;ifstream class is an input stream class&lt;/b&gt;, which provides input operations for file. The &lt;b&gt;ofstream class is an output stream class&lt;/b&gt;, which provides output operations for a file. Both ifstream and ofstream classes are defined under the header file iostream.h.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 16.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 17.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html" target="_blank"&gt;"&amp;gt; Frequently Asked C++/OOPS Interview Questions With Answers – 19.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 20.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3370853272259790750?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 18.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3370853272259790750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3370853272259790750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3370853272259790750'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 18.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-6463036176375922613</id><published>2011-09-20T23:34:00.001+05:30</published><updated>2011-10-19T21:04:35.935+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 16.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;76) What do you mean by a static data member and a static member function?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A static data member is a &lt;b&gt;class data member common to all the objects of a class.&lt;/b&gt; A static member function is a member function that can access only the static data members.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;77) What is modularity in C++?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Modularity is the&lt;b&gt; property of a system that has been decomposed into a set of cohesive and loosely coupled modules&lt;/b&gt;. In other words, modularity is the act of partitioning a program into individual components is called modularity.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;78) What do you mean by data abstraction?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Data abstraction is the act of representing essential features without including the background details. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;79) What is a pointer? How will you define a pointer to an integer and a pointer to a character?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A pointer is a &lt;b&gt;variable which holds a memory address&lt;/b&gt; which is usually the location of another variable in memory.&lt;br /&gt;&lt;br /&gt;A pointer, say ptr, to integer is declared as int *ptr; and a pointer, say cptr, is declared to a character as char *cptr.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;80) How does a pointer variable differ from a simple variable?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A simple variable stores a data value whereas a pointer variable stores a memory address of another variable in the memory. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 17.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 18.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html" target="_blank"&gt;"&amp;gt; Frequently Asked C++/OOPS Interview Questions With Answers – 19.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 20.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-6463036176375922613?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 16.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/6463036176375922613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6463036176375922613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6463036176375922613'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 16.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-8538020239983685467</id><published>2011-09-20T23:31:00.002+05:30</published><updated>2011-10-19T21:03:43.191+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 15.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;71) What is abstraction?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Data abstraction &lt;b&gt;refers to the act of representing essential features without including the background details&lt;/b&gt; or explanations. Data abstraction is an important characteristic of object oriented programming.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;72) How is abstraction and encapsulation interrelated?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Encapsulation wraps up data and functions under a single unit and ensures that only essential features get represented without representing the background details which is nothing but abstraction. Therefore, &lt;b&gt;encapsulation is a way of implementing abstraction&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;73) What is an adaptor class or Wrapper class?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;wrapper class or an adaptor class&lt;/b&gt; refers to the method by which classes wrap their primitive values in a class and offers access to them through objects. A few of the primitive wrapper data types are:&lt;br /&gt;Byte, short, int, long, float, double, char, Boolean.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;74) What is a container class? What are the types of container classes?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Two classes such that the &lt;b&gt;objects of a class are enclosed within the other class&lt;/b&gt; are called container classes and the&lt;b&gt; property is called containership, nesting or composition&lt;/b&gt;. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;75) What is polymorphism?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Polymorphism &lt;b&gt;is the ability for a message or data to be processed in more than one form.&lt;/b&gt; Function overloading, operator overloading etc are all components of polymorphism. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 16.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 17.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 18.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html" target="_blank"&gt;"&amp;gt; Frequently Asked C++/OOPS Interview Questions With Answers – 19.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 20.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-8538020239983685467?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 15.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/8538020239983685467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8538020239983685467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8538020239983685467'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 15.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4195520567277175354</id><published>2011-09-20T22:59:00.001+05:30</published><updated>2011-10-19T21:02:41.111+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 14.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;66) What is meant by inheritance hierarchy ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The&lt;b&gt; relationship between a base and derived class is referred to as a derivation or inheritance hierarchy&lt;/b&gt;. The derivation from multiple base classes is referred to as a derivation or inheritance graph.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;67) Differentiate between multiple and multilevel inheritances ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Multiple inheritance&lt;/b&gt; is the inheritance hierarchy wherein one derived class inherits from multiple base classes.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Multilevel inheritance&lt;/b&gt; is the inheritance hierarchy wherein a subclass acts as a base class for other classes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;68) What is an ABC (`Abstract Base Class') ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A class serving only as a base class for other classes and no objects of which are created is known as an abstract base class.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;69) What is a `virtual destructor' ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A virtual destructor is a destructor which is essential in C++ programming. The virtual destructor is important for a C++ base class &lt;b&gt;to ensure that the destructor from the most called function is chosen&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;70) What is a dangling pointer or wild pointers ? &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dangling pointers or wild pointers&lt;/b&gt; are pointers in computer programming, which do not point to a valid object of the appropriate type. They are special variations of memory safety violations.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 15.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 16.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 17.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 18.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html" target="_blank"&gt;Frequently Asked C++/OOPS Interview Questions With Answers – 19.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4195520567277175354?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 14.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4195520567277175354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4195520567277175354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4195520567277175354'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 14.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-6893137748174380122</id><published>2011-09-20T22:55:00.001+05:30</published><updated>2011-10-19T20:58:34.721+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 13.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;61) What is meant by a visibility mode?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The public, private or protected specifier that controls the visibility and availability of a member in a class is called a visibility mode. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;62) What's the difference between `public:', `private:', and `protected:' visibility modes?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The differences between the `public:', `private:', and `protected:' visibility modes lie in the ways in which members and functions can be accessed within a class. &lt;br /&gt;&lt;br /&gt;In the &lt;b&gt;publicly derived class&lt;/b&gt;, the public and protected members of the base class become public and protected members of the derived class.&lt;br /&gt;&lt;br /&gt;In the&lt;b&gt; privately derived class&lt;/b&gt;, the public and protected members of the base class become private members of the derived class.&lt;br /&gt;&lt;br /&gt;In the&lt;b&gt; protectedly derived class&lt;/b&gt;, the public and protected members of the base class become protected members of the derived class.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;63) When should you use inheritances?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Inheritance finds wide applications in C++ due to the following reasons.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;b&gt;Inheritance&lt;/b&gt; has the capability to express the inheritance relationships which makes it ensure the closeness with the real-world models.&lt;/li&gt;&lt;li&gt;Another reason is the &lt;b&gt;idea of&amp;nbsp;re-usability&lt;/b&gt;. Inheritance helps in addition of additional features to an existing class without modifying it.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Inheritance possesses a transitive nature&lt;/b&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;64) How do you express `private inheritance'?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The private derivation means, &lt;b&gt;the derived class can access the public and private members f the base class privately. &lt;/b&gt;Here, the inherited members can be accessed only through member functions of the derived class.&lt;br /&gt;&lt;br /&gt;Private inheritance is expressed as :&lt;br /&gt;class derived-class-name : visibility-mode base-class name&lt;br /&gt;{&lt;br /&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;65) What are the access rules with `private' and `protected' inheritance?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In private derivation, though the derived class inherits all the public and protected members of the base class become private members of the derived class, the objects of the derived class cannot access them directly. Here, the&lt;b&gt; public and protected members of the base class&lt;/b&gt; are directly accessible by the member functions and friends of the derived class as if they were the private members of the derived class.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html" target="_blank"&gt;Frequently Asked C++/OOPS Interview Questions With Answers – 14.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 15.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 16.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 17.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 18.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-6893137748174380122?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 13.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/6893137748174380122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_789.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6893137748174380122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6893137748174380122'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_789.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 13.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-7447994041473183411</id><published>2011-09-20T22:51:00.001+05:30</published><updated>2011-10-19T20:57:16.410+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 12.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;56) Define free store ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;It is a &lt;b&gt;pool of unallocated heap memory&lt;/b&gt; given to a program that is used by the program for dynamic allocation during execution.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;57) What do you mean by a self referential structure?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A structure having a member element that &lt;b&gt;refers to the structure&lt;/b&gt; itself is called a self-referential structure.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;58) What is inheritance? What the types of inheritance?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Inheritance is the &lt;b&gt;capability of one class to inherit properties from another class.&lt;/b&gt; The class from which properties are inherited is called a base class and the class inheriting properties is called the derived class.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;59) What are the different types of inheritances?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Inheritances are of many types namely &lt;b&gt;single inheritance, multiple inheritance, multilevel inheritance, hierarchical inheritance and hybrid inheritance. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;60) What is the difference between a virtual base class and a normal base class?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The major and only difference between a&lt;b&gt; virtual base class and a normal one is when an object inherits the base more than once.&lt;/b&gt; If virtual base classes are used, then only one base class is present in the object. Otherwise, multiple copies will be found.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_789.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 13.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html" target="_blank"&gt;Frequently Asked C++/OOPS Interview Questions With Answers – 14.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 15.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 16.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 17.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-7447994041473183411?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 12.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/7447994041473183411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_5532.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7447994041473183411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7447994041473183411'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_5532.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 12.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-6836542284798485280</id><published>2011-09-20T22:47:00.001+05:30</published><updated>2011-10-19T20:55:29.636+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 11.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;51) What if I forget the `[ ]' when `delete'ing array allocated via `new X[n]'?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Basically, it is the duty of the programmer, and not the compiler, to get the connection between the ‘new X[n]’ and the ‘[]’. If the programmer fails in this, the compiler will not generate a runtime error or compile-time error but will result in a heap corruption. Otherwise, the program will die. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;52) What are free store operators?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Operators that facilitate dynamic memory allocation, i.e., allocation new and de-allocation delete operators are called free store operators.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;53) What do you mean by free storage list or AVAIL list?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A list keeping account of &lt;b&gt;available free memory&lt;/b&gt; is called an AVAIL list or free storage list. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;54) What is meant by static memory allocation?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;When the amount of &lt;b&gt;memory to be allocated is known beforehand and the memory is allocated&lt;/b&gt; during compilation itself, it is referred to as static memory allocation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;55) What is dynamic memory allocation?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Allocation of memory at runtime&lt;/b&gt; is referred to as dynamic memory allocation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_5532.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 12.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_789.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 13.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html" target="_blank"&gt;Frequently Asked C++/OOPS Interview Questions With Answers – 14.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 15.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 16.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-6836542284798485280?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 11.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/6836542284798485280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6836542284798485280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6836542284798485280'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 11.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3785396883588269554</id><published>2011-09-19T00:04:00.002+05:30</published><updated>2011-10-19T20:51:42.438+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions answers'/><category scheme='http://www.blogger.com/atom/ns#' term='OOPs Concepts Interview Questions and Answers'/><category scheme='http://www.blogger.com/atom/ns#' term='oops interview questions answers'/><category scheme='http://www.blogger.com/atom/ns#' term='oops interview questions with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='basic c++ interview questions and answers'/><title type='text'>Technical Interview - C++/OOPS Questions With Answers.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: center;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;"C++/OOPS Programming" Questions With Answers".&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming Language". Read it carefully as these questions will improve your basic concept on C++/OOPS programming language, and will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Click on any question to find out it's answers:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions.html" target="_blank"&gt;Question - 1) What is a class ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions.html" target="_blank"&gt;Question - 2) What is an object ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions.html" target="_blank"&gt;Question - 3) List the advantages of object oriented programming ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions.html" target="_blank"&gt;Question - 4) What is meant by 'call by value' ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions.html" target="_blank"&gt;Question - 5) What is meant by 'call by reference' ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_28.html" target="_blank"&gt;Question - 6) What is a reference variable ? What is its use ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_28.html" target="_blank"&gt;Question - 7) What are inline functions ? What is the advantage of using them ? How are they declared ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_28.html" target="_blank"&gt;Question - 8) What are the defining traits of an object-oriented language ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_28.html" target="_blank"&gt;Question - 9) What is the purpose of the scope resolution operator ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_28.html" target="_blank"&gt;Question - 10) What are the differences between type casting and automatic type conversion ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_2868.html" target="_blank"&gt;Question - 11) Why ‘char’ is often considered as an integer data type ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_2868.html" target="_blank"&gt;Question - 12) What is the difference between structure and class in C++ ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_2868.html" target="_blank"&gt;Question - 13) What is the purpose of ios:app ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_2868.html" target="_blank"&gt;Question -14) What is the purpose of ios::ate ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_2868.html" target="_blank"&gt;Question - 15) How is random access of data achieved in C++ ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_7164.html" target="_blank"&gt;Question - 16) Which header file is required for creating and manipulating data files in C++ ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_7164.html" target="_blank"&gt;Question - 17) What is an access specifier ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_7164.html" target="_blank"&gt;Question - 18) How is memory allocated to a class and its objects ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_7164.html" target="_blank"&gt;Question - 19) What is the difference between an object and a class ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_7164.html" target="_blank"&gt;Question - 20) Differentiate between data hiding and encapsulation ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html" target="_blank"&gt;Question - 21) What is polymorphism? Explain with an example ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html" target="_blank"&gt;Question - 22) What is public, protected and private ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html" target="_blank"&gt;Question - 23) What is the significance of the protected access specifier ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html" target="_blank"&gt;Question - 24) Do 'derivation' and 'friendship' mean the same ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html" target="_blank"&gt;Question - 25) Enlist some advantages of object oriented programming ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html" target="_blank"&gt;Question - 26) Is prototyping mandatory in C++ ? Why ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html" target="_blank"&gt;Question - 27) When should a function be made inline ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html" target="_blank"&gt;Question - 28) How is a static variable different from a static function ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html" target="_blank"&gt;Question - 29) What is meant by macro ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html" target="_blank"&gt;Question - 30) What do you mean by inline function?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview.html" target="_blank"&gt;Question - 31) What is a constructor? Why would I ever use one?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview.html" target="_blank"&gt;Question - 32) What are destructors really for? Why would I ever use them?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview.html" target="_blank"&gt;Question - 33) Is a default constructor equivalent to a constructor having default arguments?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview.html" target="_blank"&gt;Question - 34) Why is a destructor function required in a class?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview.html" target="_blank"&gt;Question - 35) What is a parameterized constructor?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html" target="_blank"&gt;Question - 36) What is a copy constructor?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html" target="_blank"&gt;Question - 37) What is a default constructor? What is its role?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html" target="_blank"&gt;Question - 38) What is meant by constructor overloading?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html" target="_blank"&gt;Question - 39) What is operator overloading?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html" target="_blank"&gt;Question - 40) What operators can/cannot be overloaded?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9566.html" target="_blank"&gt;Question - 41) How is operator overloading implemented successfully in C++?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9566.html" target="_blank"&gt;Question - 42) What is abstract class?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9566.html" target="_blank"&gt;Question - 43) What is concrete class?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9566.html" target="_blank"&gt;Question - 44) What is function overloading and operator overloading?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9566.html" target="_blank"&gt;Question - 45) What is a ‘friend’ function?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_7489.html" target="_blank"&gt;Question - 46) Do ‘friends’ violate encapsulation?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_7489.html" target="_blank"&gt;Question - 47) What are some advantages/disadvantages of using friends?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_7489.html" target="_blank"&gt;Question - 48) What do you mean by the friend function and friend class?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_7489.html" target="_blank"&gt;Question - 49) Why should I use `new' instead of trustworthy old malloc()?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_7489.html" target="_blank"&gt;Question - 50) How do I allocate / unallocate an array of things?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html" target="_blank"&gt;Question - 51) What if I forget the `[ ]' when `delete'ing array allocated via `new X[n]'?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html" target="_blank"&gt;Question - 52) What are free store operators?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html" target="_blank"&gt;Question - 53) What do you mean by free storage list or AVAIL list?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html" target="_blank"&gt;Question - 54) What is meant by static memory allocation?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html" target="_blank"&gt;Question - 55) What is dynamic memory allocation?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_5532.html" target="_blank"&gt;Question - 56) Define free store ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_5532.html" target="_blank"&gt;Question - 57) What do you mean by a self referential structure?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_5532.html" target="_blank"&gt;Question - 58) What is inheritance? What the types of inheritance?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_5532.html" target="_blank"&gt;Question - 59) What are the different types of inheritances?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_5532.html" target="_blank"&gt;Question - 60) What is the difference between a virtual base class and a normal base class?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_789.html" target="_blank"&gt;Question - 61) What is meant by a visibility mode?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_789.html" target="_blank"&gt;Question - 62) What's the difference between `public:', `private:', and `protected:' visibility modes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_789.html" target="_blank"&gt;Question - 63) When should you use inheritances?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_789.html" target="_blank"&gt;Question - 64) How do you express `private inheritance'?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_789.html" target="_blank"&gt;Question - 65) What are the access rules with `private' and `protected' inheritance?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html" target="_blank"&gt;Question - 66) What is meant by inheritance hierarchy ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html" target="_blank"&gt;Question - 67) Differentiate between multiple and multilevel inheritances ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html" target="_blank"&gt;Question - 68) What is an ABC (`Abstract Base Class') ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html" target="_blank"&gt;Question - 69) What is a `virtual destructor' ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html" target="_blank"&gt;Question - 70) What is a dangling pointer or wild pointers ? &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt;Question - 71) What is abstraction?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt;Question - 72) How is abstraction and encapsulation interrelated?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt;Question - 73) What is an adaptor class or Wrapper class?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt;Question - 74) What is a container class? What are the types of container classes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt;Question - 75) What is polymorphism? &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt;Question - 76) What do you mean by a static data member and a static member function?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt;Question - 77) What is modularity in C++?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt;Question - 78) What do you mean by data abstraction?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt;Question - 79) What is a pointer? How will you define a pointer to an integer and a pointer to a character?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_236.html" target="_blank"&gt;Question - 80) How does a pointer variable differ from a simple variable?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt;Question - 81) What is a nested structure ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt;Question - 82) How are arrays and structures related to each other ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt;Question - 83) What is the difference between structure and class?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt;Question - 84) What is the difference between get and getline member functions ?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_587.html" target="_blank"&gt;Question - 85) Differentiate between ifstream class and ofstream class?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt;Question - 86) Name the streams generally used for file operations.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt;Question - 87) What do you mean by ‘this’ pointer?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt;Question - 88) What is a data structure?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt;Question - 89) List four major operations associated with linear data structures?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_8894.html" target="_blank"&gt;Question - 90) What are trees in C++?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html" target="_blank"&gt;Question - 91) State conditions under which binary search is applicable.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html" target="_blank"&gt;Question - 92) What is a linked list?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html" target="_blank"&gt;Question - 93) Differentiate between functions read() and write().&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html" target="_blank"&gt;Question - 94) What is a null pointer?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9890.html" target="_blank"&gt;Question - 95) What is a memory leak?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html" target="_blank"&gt;Question - 96) What is a stack?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html" target="_blank"&gt;Question - 97) What is meant by overflow in C++?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html" target="_blank"&gt;Question - 98) What is an infix expression?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html" target="_blank"&gt;Question - 99) What do you mean by static binding?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_4017.html" target="_blank"&gt;Question - 100) What do you mean by a node?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3785396883588269554?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com' title='Technical Interview - C++/OOPS Questions With Answers.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3785396883588269554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/technical-interview-coops-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3785396883588269554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3785396883588269554'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/technical-interview-coops-questions.html' title='Technical Interview - C++/OOPS Questions With Answers.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-1105467518283336601</id><published>2011-09-18T23:33:00.001+05:30</published><updated>2011-10-19T20:50:13.425+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 10.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;46) Do ‘friends’ violate encapsulation?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;friend lessens the value of encapsulation of separate classes in object oriented programming.&lt;/b&gt; Hence, too many external functions or friend functions are not advisable for use in object oriented programs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;47) What are some advantages/disadvantages of using friends?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;major advantage of the friend function is that it allows a great degree of freedom in the interface design&lt;/b&gt; option. This function is useful when a class needs to hide certain components from the users and use it elsewhere. &lt;b&gt;Friend function efficiently keeps the data details private and secure from the outside-class area.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The major &lt;b&gt;disadvantage of friend function&lt;/b&gt; is that it requires an extra line of code while using dynamic binding. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;48) What do you mean by the friend function and friend class?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;friend function is a non-member function&lt;/b&gt; that is granted access to a class’s private      and protected members.&lt;br /&gt;A &lt;b&gt;friend class is a class whose member functions&lt;/b&gt; can access another class’s private and protected members.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;49) Why should I use `new' instead of trustworthy old malloc()?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;It is necessary to use &lt;b&gt;‘new’ instead of the old ‘malloc’ to ensure efficiency of the program.&lt;/b&gt; Unlike malloc, new calls the specific constructor. Further, the value returned by new is type safe and the new operator can be overridden. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;50) How do I allocate / unallocate an array of things?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An array of things is allocated or unallocated using the new and delete operators. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 11.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_5532.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 12.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_789.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 13.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html" target="_blank"&gt;Frequently Asked C++/OOPS Interview Questions With Answers – 14.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9740.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 15.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-1105467518283336601?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 10.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/1105467518283336601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_7489.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1105467518283336601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1105467518283336601'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_7489.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 10.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-2792748637030063154</id><published>2011-09-18T23:29:00.001+05:30</published><updated>2011-10-19T20:49:14.077+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 9.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;41) How is operator overloading implemented successfully in C++?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In C++, &lt;b&gt;operator overloading follows the same procedure of functioning as function overloading.&lt;/b&gt; The implementation of operator overloading depends upon the situation where the operator is used. For example, the ‘-‘sign, when used with a number, like -20, is read by the compiler to be a negative number. At the same time, when the ‘-‘ sign is associated with two numbers, like 8-5, then the compiler identifies it to be the subtraction operation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;42) What is abstract class?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Abstract class is a class that defines an interface,&lt;/b&gt; but does not necessarily provide implementations for all its member functions. No objects of an abstract class exist, i.e, it cannot be instantiated.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;43) What is concrete class?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;concrete class is a derived class of an abstract class that implements all the missing functionality&lt;/b&gt;. A concrete class can be instantiated. i.e, its objects can be created.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;44) What is function overloading and operator overloading?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A function name having several definitions that are differentiable by the &lt;b&gt;number or types of their arguments is known as function overloading&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Operator overloading is a specific case of polymorphism in C++. In &lt;b&gt;operator overloading, different operators have different implementations, depending on their arguments. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;45) What is a ‘friend’ function?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;friend function in C++ is a function which allows access to private or protected data in a class&lt;/b&gt; from outside. Friend functions are declared using the ‘friend’ keyword.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_7489.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 10.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 11.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_5532.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 12.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_789.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 13.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_2421.html" target="_blank"&gt;Frequently Asked C++/OOPS Interview Questions With Answers – 14.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-2792748637030063154?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 9.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/2792748637030063154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9566.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2792748637030063154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2792748637030063154'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9566.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 9.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-7107178813497880978</id><published>2011-09-18T23:21:00.005+05:30</published><updated>2011-10-19T20:47:38.551+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 8.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;36) What is a copy constructor?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;constructor that initializes an object using values of another object passed to it as parameter&lt;/b&gt; is called &lt;b&gt;copy constructor&lt;/b&gt;. It creates the copy of the passed object. The format of declaration is: &lt;br /&gt;classname (classname &amp;amp;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;37) What is a default constructor? What is its role?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;default constructor is the one that takes no arguments&lt;/b&gt;. It is automatically invoked when an object is created without providing any initial values. In case, the programmer has not defined a default constructor, the compiler automatically generates it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;38) What is meant by constructor overloading?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Constructor overloading refers to a &lt;b&gt;class having multiple constructor definitions, each having a different signature.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;39) What is operator overloading?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Operator overloading is a specific case of polymorphism in C++. In &lt;b&gt;operator overloading, different operators have different implementations, depending on their arguments. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;40) What operators can/cannot be overloaded?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Most can be overloaded. The &lt;b&gt;only C++ operators that can't be are . and ?: &lt;/b&gt;(and sizeof, which is technically an operator). C++ adds a few of its own operators, most of which can be overloaded except :: and .*.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9566.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 9.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_7489.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 10.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 11.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html" target="_blank"&gt;  Frequently Asked C++/OOPS Interview Questions With Answers – 11.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_5532.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 12.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-7107178813497880978?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 8.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/7107178813497880978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7107178813497880978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7107178813497880978'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 8.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-2397050451237628105</id><published>2011-09-18T23:17:00.001+05:30</published><updated>2011-10-19T20:46:36.060+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 7.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;31) What is a constructor? Why would I ever use one?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;constructor is a member function with the same name as that of its class.&lt;/b&gt; Constructors are automatically invoked when an object of the same class is created. The constructor has the same name as that of the class. &lt;br /&gt;A constructor is used often to initialize the objects of that class type with a legal initial value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;32) What are destructors really for? Why would I ever use them?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A destructor is a member function with the same name as that of its class but is preceded by a tilde (~). &lt;b&gt;Destructors are really for the purpose of de-initializing an object before it goes out of scope. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;33) Is a default constructor equivalent to a constructor having default arguments?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Yes, a &lt;b&gt;default constructors is equivalent to a constructor having default arguments&lt;/b&gt; because when no initial values are provided for an object at the time of its declaration, the constructor having default argument values is invoked same way as the default constructor is invoked. Therefore, these two are considered equivalent.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;34) Why is a destructor function required in a class?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;During construction of an object by a constructor, resources are allocated for use. These resources must be de-allocated before the object is destroyed. A destructor achieves this function and performs all clean-up jobs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;35) What is a parameterized constructor?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A constructor that receives arguments or parameters is called a parameterized constructor.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 8.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9566.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 9.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_7489.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 10.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_20.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 11.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-2397050451237628105?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 7.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/2397050451237628105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2397050451237628105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2397050451237628105'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 7.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-1641270058005097750</id><published>2011-09-15T23:52:00.000+05:30</published><updated>2011-09-19T23:53:35.355+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sample C program code and output'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs for beginners'/><category scheme='http://www.blogger.com/atom/ns#' term='C Programs with output'/><category scheme='http://www.blogger.com/atom/ns#' term='C Programming Questions and Answers'/><category scheme='http://www.blogger.com/atom/ns#' term='C Questions and Answers'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs with solutions'/><title type='text'>50 C Programming Interview Questions With Answers.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-size: 25px; font-weight: bold;"&gt;C Programs Frequently Asked In Interviews.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This section covers C programs often asked in &lt;b&gt;campus interviews&lt;/b&gt; and freshers walk-in. It helps job seekers who are about to attend &lt;b&gt;TECHNICAL interview round&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Here you will find &lt;b&gt;simple C programming questions with answers&lt;/b&gt; basically asked in &lt;b&gt;technical interviews&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-print-welcome.html" target="_blank"&gt;1) Program To Print Welcome Message.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-print-welcome.html" target="_blank"&gt;2) Program To Accept &amp;amp; Display A Number.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-print-first-ten.html" target="_blank"&gt;3) Program To Add Two Numbers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-print-first-ten.html" target="_blank"&gt;4) Program To Perform Arithmetic Operations.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-print-sum-of-digits.html" target="_blank"&gt;5) Program To Print Sum Of Digits In A Number.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-print-sum-of-digits.html" target="_blank"&gt;6) Program To Print The System Date.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-swap-two-numbers.html" target="_blank"&gt;7) Program To Swap Two Numbers Using Temporary Variables.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-swap-two-numbers.html" target="_blank"&gt;8) Program To Swap Two Numbers Without Using Temporary Variables.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-swap-two-numbers.html" target="_blank"&gt;9) Program To Print First Ten(10) Natural Numbers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-swap-two-numbers.html" target="_blank"&gt;10) Program To Find Area &amp;amp; Circumference Of A Circle.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-area-of.html" target="_blank"&gt;11) Program To Find The Area Of A Rectangle (Using Functions).&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-factorial-of.html" target="_blank"&gt;12) Program To Find Factorial Of A Number.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-factorial-of.html" target="_blank"&gt;13) Program To Print Fibonacci Series Upto 100.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-calculate-simple.html" target="_blank"&gt;14) Program To Calculate Simple Interest.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-calculate-simple.html" target="_blank"&gt;15) Program To Check Whether A Number Is Prime Or Not.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-convert-celsius.html" target="_blank"&gt;16) Program To Check Whether A Number Is Even Or Not.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;17) Program To Find Greatest Among Three Numbers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-reverse-of.html" target="_blank"&gt;18) Program To Compute The Reverse Of A Number.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-convert-celsius.html" target="_blank"&gt;19) Program To Convert Degree Celsius Temperature To Fahrenheit.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-accept-floating.html" target="_blank"&gt;20) Program To Accept Floating Point Numbers &amp;amp; Print Average.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-accept-floating.html" target="_blank"&gt;21) Program To Find The Area Of A Triangle.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-sort-numbers-in.html" target="_blank"&gt;22) Program To Sort A Given Set Of Numbers In Ascending Numbers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-specify-size-of.html" target="_blank"&gt;23) Program To Specify Size Of Commonly Used Data Types.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-specify-size-of.html" target="_blank"&gt;24) Program To Accept Input &amp;amp; Multiply Two Numbers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-count-number-of.html" target="_blank"&gt;25) Program To Count The Number Of Times A Digit Occurs In A Number Array.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-roots-of.html" target="_blank"&gt;26) Program To Find The Roots Of A Quadratic Equation.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-count-number-of_15.html" target="_blank"&gt;27) Program To Count The Number Of Times The Largest Digit Occurs In A Number.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-print-number-of.html" target="_blank"&gt;28) Program To Print Number Of Vowels, Consonants, Characters, Words &amp;amp; Spaces In A Line Of Text.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-area-of.html" target="_blank"&gt;29) Program To Find The Sum Of N Numbers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-accept-add-ten.html" target="_blank"&gt;30) Program To Accept &amp;amp; Add Ten Numbers Using Pointers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-check-whether.html" target="_blank"&gt;31) Program To Check Whether A Number Is Armstrong Or Not.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-display-days-in.html" target="_blank"&gt;32) Program To Display The Days In A Week (Using Switch...Case Statement).&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-square-of.html" target="_blank"&gt;33) Program To Find The Square Of A Number (Using Functions).&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-square-of.html" target="_blank"&gt;34) Program To Find Gross Salary.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-check-whether-year.html" target="_blank"&gt;35) Program To Check Whether An Year Is A Leap Year Or Not.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-print-sum-of-series.html" target="_blank"&gt;36) Program To Print Sum Of Series 1 + 3 + 5 + …. N.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-add-complex-numbers.html" target="_blank"&gt;37) Program To Add Complex Numbers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-check-whether-year.html" target="_blank"&gt;38) Program To Display A Sequence Using Stars.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-print-sum-of-series.html" target="_blank"&gt;39) Program To Print A Star Pyramid.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-add-two-numbers_16.html" target="_blank"&gt;40) Program To Print Floyd’s Triangle.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-transpose-matrix.html" target="_blank"&gt;41)  Program To Transpose A Matrix.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-add-two-matrices.html" target="_blank"&gt;42) Program To Add Two Matrices.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-multiply-twop.html" target="_blank"&gt;43) Program To Multiply Two Matrices.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;44) Program To Find The Length Of A String.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-concatenate-two.html" target="_blank"&gt;45) Program To Concatenate Two Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-concatenate-two.html" target="_blank"&gt;46) Program To Swap Two Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-compare-two-strings.html" target="_blank"&gt;47) Program To Compare Two Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-reverse-of.html" target="_blank"&gt;48) Program To Check Whether A String Is Palindrome Or Not.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-compare-two-strings.html" target="_blank"&gt;49) Program To Print The Reverse Of A String.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2008/06/c-programs-frequently-asked-in.html" target="_blank"&gt;50) Program To Join Two Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-add-two-numbers_16.html" target="_blank"&gt;51) Program To Add Two Numbers Using Pointers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-1641270058005097750?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/1641270058005097750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/09/50-c-programming-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1641270058005097750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1641270058005097750'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/09/50-c-programming-interview-questions.html' title='50 C Programming Interview Questions With Answers.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-1367259564512268149</id><published>2011-08-28T20:01:00.008+05:30</published><updated>2011-10-19T20:45:37.441+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 4.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 16) Which header file is required for creating and manipulating data files in C++?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;fstream.h&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 17) What is an access specifier?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An access specifier is a way to specify the scope and accessibility of members of a class. Access specifiers can be either private or protected or public.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 18) How is memory allocated to a class and its objects?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;When a class is defined, memory is allocated for its member functions and they are stored in the memory. When an object is created, separate memory space is allocated for its data members. All objects work with the one copy of member functions shared by all.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 19) What is the difference between an object and a class ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An &lt;b&gt;object is an identifiable entity&lt;/b&gt; with some characteristics and behavior. It represents an entity that can store data and its associated functions.&lt;br /&gt;A &lt;b&gt;class is a group of objects&lt;/b&gt; that share common properties and relationships. It represents a group of similar objects.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 20) Differentiate between data hiding and encapsulation ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Data hiding is the property whereby the internal data structure of an object is hidden from the rest of the program.&lt;br /&gt;&lt;br /&gt;Data encapsulation is the mechanism by which the data and associated functions are bound together within an object definition in such a way so that only relevant information is exposed and rest remains hidden. Thus, data encapsulation implements data hiding.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 5.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 6.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 7.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 8.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9566.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 9.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-1367259564512268149?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 4.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/1367259564512268149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_7164.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1367259564512268149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1367259564512268149'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_7164.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 4.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-1481738021252407932</id><published>2011-08-28T20:01:00.007+05:30</published><updated>2011-10-19T20:40:03.334+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 4.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 21) What is polymorphism? Explain with an example ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Polymorphism is the property by which the same message can be sent to different objects of several different classes, and eah object can respond to it in a different way depending upon its class. In C++, &lt;b&gt;polymorphism is implemented through overloading&lt;/b&gt;. &lt;br /&gt;&lt;br /&gt;A&lt;b&gt; function name having several definitions&lt;/b&gt; that are differentiable by the number of types of their arguments is known as function overloading. For example,&lt;br /&gt;&lt;br /&gt;float area (float a)&lt;br /&gt;{&lt;br /&gt;return a * a;&lt;br /&gt;}&lt;br /&gt;float area (float a, float b)&lt;br /&gt;{&lt;br /&gt;return a * b;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 22) What is public, protected and private ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Public, protected and private are access labels in a class&lt;/b&gt;. A class provides three access labels namely private, protected and public. &lt;br /&gt;&lt;br /&gt;A &lt;b&gt;member declared as public&lt;/b&gt; is made available to the outside world. That is, it can be accessed by any function, any expression in the program but only by using an object of the same class type. &lt;br /&gt;&lt;br /&gt;A &lt;b&gt;member declared as private or protected&lt;/b&gt; remains hidden from outside world and it can only be accessed by the member functions and friend functions of a class.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 23) What is the significance of the protected access specifier ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The members having protected accessibility are hidden from outside world, like&lt;b&gt; private members, but when inherited,&lt;/b&gt; they remain visible in the derived class unlike private members.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -24) Do 'derivation' and 'friendship' mean the same ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;No. ‘Friendship’ gets the &lt;b&gt;access privilege for private and protected members of a class&lt;/b&gt;. However, ‘derivation’ from that class gets access privilege only for protected members of the class.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 25) Enlist some advantages of object oriented programming ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The major &lt;b&gt;advantages of object oriented programming&lt;/b&gt; are:&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Re-usability of code.&lt;/li&gt;&lt;li&gt;Ease of comprehension.&lt;/li&gt;&lt;li&gt;Ease of fabrication and maintenance.&lt;/li&gt;&lt;li&gt;Easy redesign and extension.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html" style="font-weight: bold;" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 5.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html" style="font-weight: bold;" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 6.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview.html" style="font-weight: bold;" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 7.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html" style="font-weight: bold;" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 8.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" style="font-weight: bold;" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-1481738021252407932?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 4.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/1481738021252407932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1481738021252407932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1481738021252407932'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 4.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4246234285288255446</id><published>2011-08-28T20:01:00.006+05:30</published><updated>2011-10-19T20:37:01.106+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='oops'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 5.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 26) Is prototyping mandatory in C++? Why?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Yes, &lt;b&gt;prototyping is mandatory in C++&lt;/b&gt;. C++ makes it mandatory to ensure proper invocation of functions and prompt error reporting.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -27) When should a function be made inline?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A&lt;b&gt; function is made inline&lt;/b&gt; when:&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;The function is small.&lt;/li&gt;&lt;li&gt;The function is not returning any value and contains no return statement.&lt;/li&gt;&lt;li&gt;The function does not contain a loop or a switch or a goto.&lt;/li&gt;&lt;li&gt;The function does not contain static variables.&lt;/li&gt;&lt;li&gt;The function is not recursive.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;b&gt;Question - 28) How is a static variable different from a static function?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A static variable has a&lt;b&gt; function scope but the global life time&lt;/b&gt;. A static function has a file scope instead of program scope.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 29) What is meant by macro?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A&lt;b&gt; macro is a #define function&lt;/b&gt;, whose every occurrence is the program is replaced prior to compilation as per its definition.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 30) What do you mean by inline function?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An inline function is that which is not invoked at the time of function call rather its code is replaced in the program at the time of function call. Thus,&lt;b&gt; inline functions save the overheads of a function call.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 6.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 7.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 8.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_9566.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 9.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_7489.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 10.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4246234285288255446?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 5.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4246234285288255446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4246234285288255446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4246234285288255446'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 5.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-6371145327172580397</id><published>2011-08-28T16:10:00.004+05:30</published><updated>2011-10-19T20:33:29.327+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 3.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 11) Why ‘char’ is often considered as an integer data type?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The memory implementation of&lt;b&gt; char data type&lt;/b&gt; is in terms of the number code, which is an integer. Therefore, it is said to be another integer data type.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 12) What is the difference between structure and class in C++?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;structure is a collection of data&lt;/b&gt; while the&lt;b&gt; class is a collection of data and functions&lt;/b&gt;. Further, all members are public by default in a structure while all members are private by default in class. Class has greater data security than structure.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 13) What is the purpose of ios:app?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The function of&lt;b&gt; ios::app is to retain the previous contents of a file &lt;/b&gt;and to append to the end of the existing file contents, rather than truncating them.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -14) What is the purpose of ios::ate?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The purpose of&lt;b&gt; ios::ate is to place file pointer at the end of the file&lt;/b&gt;, but you can write data anywhere in the file. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 15) How is random access of data achieved in C++?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In C++, random access is achieved by manipulating &lt;b&gt;seekg( ), seekp( ), tellg( ) and tellp( ) functions.&lt;/b&gt; The seekg() and tellg() functions allow you to set and examine the get_pointer, and the seekp() and tellp() functions perform these operations on the put_pointer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_7164.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 4.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 5.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 6.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 7.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/09/frequently-asked-coops-interview_18.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 8.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-6371145327172580397?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 3.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/6371145327172580397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_2868.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6371145327172580397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6371145327172580397'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_2868.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 3.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-2584087519691654345</id><published>2011-08-28T12:23:00.002+05:30</published><updated>2011-10-19T20:30:48.749+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 2.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 6) What is a reference variable ? What is its use ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;reference variable is an alias name for a previously declared variable.&lt;/b&gt; The use of it is that is that the same data object can be referred to by two names and these names can be used interchangeably. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 7) What are inline functions ? What is the advantage of using them ? How are they declared ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An inline function is a function upon which the C++ compiler is asked to perform inline expansion, i.e. the compiler is requested to replace every function call with the complete body of the function, rather than generating the function code at each and every position of the function call.&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;major advantage of inline functions is that it saves on the overhead of a function call. &lt;/b&gt;Since the function is not invoked, but its code is replaced in the program, it saves the compiler time and improves efficiency. &lt;br /&gt;&lt;br /&gt;The &lt;b&gt;format to declare an inline function&lt;/b&gt; is: &lt;br /&gt;&lt;br /&gt;inline datatype function_name(parameters)&lt;br /&gt;{&lt;br /&gt;function content;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 8) What are the defining traits of an object-oriented language ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The defining traits of an object oriented programming language are the following:&lt;br /&gt;&lt;br /&gt;Data abstraction.&lt;br /&gt;Data encapsulation.&lt;br /&gt;Inheritance.&lt;br /&gt;Polymorphism.&lt;br /&gt;Modularity.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 9) What is the purpose of the scope resolution operator ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In C++, the &lt;b&gt;scope resolution operator (::)&lt;/b&gt; is used to qualify hidden file names so that&lt;br /&gt;they can be used. Further, the scope resolution operator can also be used to qualify&lt;br /&gt;class names or class member names.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 10) What are the differences between type casting and automatic type conversion ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Type casting or explicit type conversion &lt;b&gt;is user-defined forced conversion&lt;/b&gt;. It is done with the help of casting operator (). &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Automatic type conversion&lt;/b&gt; or implicit type conversion is a data type conversion performed by compiler on its own. It occurs whenever an expression has different types. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_2868.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 3.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_7164.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 4.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 5.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers – 6.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-2584087519691654345?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 2.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/2584087519691654345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2584087519691654345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/2584087519691654345'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_28.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 2.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-4758737779456857498</id><published>2011-08-28T12:22:00.004+05:30</published><updated>2011-10-19T20:28:36.911+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c++'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C++'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ sample interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c++ interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C++ questions'/><title type='text'>Frequently Asked C++/OOPS Interview Questions With Answers - 1.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 1) What is a class?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;class is a group of objects&lt;/b&gt;, i.e. data members or member-functions that share common properties and relationships. It represents a group of similar objects.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 2) What is an object?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An object is an identifiable entity with some characteristics and behavior. It represents an entity that can store data and its associated functions.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 3) List the advantages of object oriented programming?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Object oriented programming has &lt;b&gt;many advantages&lt;/b&gt;:&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Re-usability&amp;nbsp;of code.&lt;/li&gt;&lt;li&gt;Ease of comprehension.&lt;/li&gt;&lt;li&gt;Ease of fabrication and maintenance.&lt;/li&gt;&lt;li&gt;Easy redesign and extension.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 4) What is meant by ‘call by value’?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In C++, structures can be passed to &lt;b&gt;functions by two methods&lt;/b&gt; namely ‘by value’ and ‘by reference’. In ‘call by value’ method, the called function copies the passed structure on to its own work copy; the original structure then remains unaffected.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 5) What is meant by ‘call by reference’?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In ‘call by reference’ method of calling functions, the called function declares a reference for the passed structure and refers to the original structure elements through its reference.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_28.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers - 2.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_2868.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers - 3.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_7164.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers - 4.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1384.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers - 5.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions_1811.html" target="_blank"&gt; Frequently Asked C++/OOPS Interview Questions With Answers - 6.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-faqs.html" target="_blank"&gt; … Back To C++/OOPS Interview QnA Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-4758737779456857498?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-faqs.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 1.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/4758737779456857498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4758737779456857498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/4758737779456857498'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interview-questions.html' title='Frequently Asked C++/OOPS Interview Questions With Answers - 1.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-5341259243328005755</id><published>2011-08-27T15:32:00.003+05:30</published><updated>2011-10-19T19:57:25.390+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C questions'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c'/><category scheme='http://www.blogger.com/atom/ns#' term='c sample interview questions'/><title type='text'>Frequently Asked C Interview Questions With Answers - 10.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on “C Programming language”. Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -46) How is deletion in an array list carried out?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Deletion from an array list is possible in two ways:&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Deletion of the first element.&lt;/li&gt;&lt;li&gt;Deletion of the last element.&lt;/li&gt;&lt;li&gt;Deletion in between.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;b&gt;Question -47) What are the advantages of array lists?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;major advantage of the array list&lt;/b&gt; is that we can easily compute the address of the array through index and we can also access the array element through the index.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -48) What are the disadvantages of an array list?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;disadvantage of an array list&lt;/b&gt; is that we have to keep the total number of elements and array size. We cannot take elements more than array size because array size is fixed. It requires much processing in insertion and deletion of shifting of array elements.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -49) What is a linked list in C?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A linked list is a self referential structure in which a member of a structure points to the structure itself. In other words, &lt;b&gt;a linked list is a collection of elements called nodes. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -50) What is a node?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;A node is the component of a linked list.&lt;/b&gt; Each node has two parts, first part contains the information field and second part contains the address of the next node. The address part of the last node of linked list will have NULL value. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_1976.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 6.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6522.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 7.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_2508.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 8.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6633.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 9.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-questions.html" target="_blank"&gt;- ...Back To C Questions INDEX.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-programs.html" target="_blank"&gt;- ...Back To C Programming INDEX.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-5341259243328005755?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-questions.html' title='Frequently Asked C Interview Questions With Answers - 10.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/5341259243328005755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_7344.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5341259243328005755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5341259243328005755'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_7344.html' title='Frequently Asked C Interview Questions With Answers - 10.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-8685243148435708293</id><published>2011-08-27T15:26:00.003+05:30</published><updated>2011-08-28T11:57:50.668+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C questions'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c'/><category scheme='http://www.blogger.com/atom/ns#' term='c sample interview questions'/><title type='text'>Frequently Asked C Interview Questions With Answers - 9.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on “C Programming language”. Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 41) What is the size of the void pointer in C?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The size of void pointer in C is two bytes. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -42) What is a nested loop in C?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A nested loop in C is a loop within another loop. Nested loops find wide applications in C as well as C++ programs. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -43) What are the operations performed on C++ lists?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The operations performed on lists are insertion, deletion, traversal and search.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -44) How is searching in an array list carried out?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For searching an element in an array list, first we traverse the array list and with traversing, we compare each element of array with the given element. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -45) Where can an element are inserted in an array list?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Insertion into an array list is possible in two ways:&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Insertion at the beginning.&lt;/li&gt;&lt;li&gt;Insertion at the end.&lt;/li&gt;&lt;li&gt;Insertion in between.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_8356.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 5.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_1976.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 6.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6522.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 7.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_2508.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 8.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-questions.html" target="_blank"&gt;- ...Back To C Questions INDEX.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-programs.html" target="_blank"&gt;- ...Back To C Programming INDEX.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-8685243148435708293?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-questions.html' title='Frequently Asked C Interview Questions With Answers - 9.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/8685243148435708293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6633.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8685243148435708293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8685243148435708293'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6633.html' title='Frequently Asked C Interview Questions With Answers - 9.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3657627295837250234</id><published>2011-08-27T14:29:00.002+05:30</published><updated>2011-08-28T11:57:58.838+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C questions'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c'/><category scheme='http://www.blogger.com/atom/ns#' term='c sample interview questions'/><title type='text'>Frequently Asked C Interview Questions With Answers - 8.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on “C Programming language”. Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -36) What is the purpose of the free() function?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For efficient use of memory space, the memory space that is not required should be released. The free() function achieves this.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -37) How to use realloc() to dynamically increase size of an already allocated array?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The function realloc() can be used to change the size of the memory block reserved for a particular object. This is known as reallocation of memory. &lt;br /&gt;&lt;br /&gt;The function realloc() moves the content of old block into the new block and the data of the old block is not lost.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -38) What is the purpose of the sizeof() operator?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The sizeof() operator is a unary operator. This operator gives the size of its argument in terms of bytes. The argument can be a variable, array or any data type. This operator also gives the size of any structure.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -39) What is a wild pointer in C?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A wild pointer in C refers to a pointer which has not been initialized with any particular value. Wild pointer does not point to any specific memory location.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -40) What is the purpose of the do-while loop in C?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Do-while loop or post tested loop is the loop used when it is necessary to execute the loop at least once in the execution of the program. The syntax of the do-while loop is:&lt;br /&gt;&lt;br /&gt;do &lt;br /&gt;{&lt;br /&gt;loop body&lt;br /&gt;} while (condition);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_1976.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 6.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6522.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 7.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6633.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 9.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_7344.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 10.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-questions.html" target="_blank"&gt;- ...Back To C Questions INDEX.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-programs.html" target="_blank"&gt;- ...Back To C Programming INDEX.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3657627295837250234?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-questions.html' title='Frequently Asked C Interview Questions With Answers - 8.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3657627295837250234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_2508.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3657627295837250234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3657627295837250234'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_2508.html' title='Frequently Asked C Interview Questions With Answers - 8.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3228978768203504427</id><published>2011-08-27T14:04:00.005+05:30</published><updated>2011-08-28T11:58:12.413+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C questions'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c'/><category scheme='http://www.blogger.com/atom/ns#' term='c sample interview questions'/><title type='text'>Frequently Asked C Interview Questions With Answers - 7.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on “C Programming language”. Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -31) What is a far pointer in C?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;far pointer in C&lt;/b&gt; refers to a pointer which is capable of pointing or &lt;b&gt;accessing the whole of RAM’s residence memory.&lt;/b&gt; The far pointer can access all 16 segments of the residence memory. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -32) What are the uses of the void data type?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The void data type is &lt;b&gt;used basically to declare generic pointers.&lt;/b&gt; They are also used as a function parameter and as a function return type.  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -33) What is a pointer in C?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A pointer in C is a variable. It &lt;b&gt;contains the memory address&lt;/b&gt;, i.e, locations of another variable which is declared as the pointer type. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -34) What are the advantages of using pointers?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Pointers help to save memory spaces.&lt;/li&gt;&lt;li&gt;Use of pointer assigns the memory space and also releases it. This helps in making best use of the available memory. In other words, it caters to dynamic memory allocation.&lt;/li&gt;&lt;li&gt;With pointers, data manipulation is done with address, so execution becomes faster.&lt;/li&gt;&lt;li&gt;Array representation is easy with pointers.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -35) What are the differences between malloc() and calloc()?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;malloc() function&lt;/b&gt; is used to allocate memory space. It reserves a memory space of specified size and gives the starting address to pointer variable. &lt;br /&gt;&lt;br /&gt;The &lt;b&gt;calloc() function &lt;/b&gt;is used to allocate multiple blocks of memory. This has two arguments. The calloc() function is generally used for allocating the memory space for arrays and structures.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_2508.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 8.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6633.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 9.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_7344.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 10.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-questions.html" target="_blank"&gt;- ...Back To C Questions INDEX.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-programs.html" target="_blank"&gt;- ...Back To C Programming INDEX.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3228978768203504427?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-questions.html' title='Frequently Asked C Interview Questions With Answers - 7.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3228978768203504427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6522.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3228978768203504427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3228978768203504427'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6522.html' title='Frequently Asked C Interview Questions With Answers - 7.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-8650086464954587475</id><published>2011-08-27T13:56:00.002+05:30</published><updated>2011-08-28T11:59:30.069+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C questions'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c'/><category scheme='http://www.blogger.com/atom/ns#' term='c sample interview questions'/><title type='text'>Frequently Asked C Interview Questions With Answers - 6.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Question -26) Out of the functions fgets() and gets(), which one is safer to use and why?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Out of &lt;b&gt;fgets() and gets()&lt;/b&gt;, the safer one to use is fgets(). The reason is, gets(), after receiving a string from the input device, gets terminated only when the enter key is pressed. The string can be limitless and it may cause buffer overflow.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -27) What is the difference between the functions strdup() and strcpy()?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;strdup() function is helpful in duplicating a string&lt;/b&gt; to a location decided by the function itself. Here the contents of a string is copied to a memory location and returns the address. &lt;br /&gt;&lt;br /&gt;The &lt;b&gt;strcpy() function copies a string to a position&lt;/b&gt; demanded by the user. The arguments of the function are the source string and the destination string. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -28) What is recursive function?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A recursive function is a function in which the statement of the function within the function body, calls the same function. Such a function is also called circular definition. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -29) What is the difference between defining and declaring a variable?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Defining a variable means declaring it and allocating memory space to it. &lt;br /&gt;&lt;br /&gt;Declaring a variable means declaring it but not specifying the memory allocation. Declaration of variables just hints the compiler about the type and size of the variable during compile time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -30) What is a constant variable?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;By default the value of any variable in C is not constant. Hence, to assign a variable with a constant value throughout the program, the variable can be made a constant variable. Constant variable are declared using the const keyword and they make execution faster than non-constant variables.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6522.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 7.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_2508.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 8.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6633.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 9.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_7344.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 10.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-questions.html" target="_blank"&gt;- ...Back To C Questions INDEX.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-programs.html" target="_blank"&gt;- ...Back To C Programming INDEX.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-8650086464954587475?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-questions.html' title='Frequently Asked C Interview Questions With Answers - 6.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/8650086464954587475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_1976.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8650086464954587475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8650086464954587475'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_1976.html' title='Frequently Asked C Interview Questions With Answers - 6.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-6360380634591103757</id><published>2011-08-27T13:17:00.004+05:30</published><updated>2011-08-28T11:59:37.085+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C questions'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c'/><category scheme='http://www.blogger.com/atom/ns#' term='c sample interview questions'/><title type='text'>Frequently Asked C Interview Questions With Answers - 5.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on “C Programming language”. Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question - 21) What is the purpose of main() function?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;main() function in C&lt;/b&gt; is the most vital part of a program. The program execution occurs from the main() function. The main() function may contain any number of statements and they are sequentially executed. main() function can in turn call other functions.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -22) What are the differences between formal arguments and actual arguments of a function?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Formal arguments are parameters or arguments in a function declaration.&lt;/b&gt; The scope of such arguments is local to the function definition. Any change made to the formal arguments will not be reflected back in the main program. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Actual arguments are arguments that are passed in a function call.&lt;/b&gt; Such arguments are defined inside the function body.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -23) What is call by value in functions?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Arguments or parameters can be passed to the functions by call by value.&lt;/b&gt; In call by value, the values of the variables are passed to the functions. In this, values of variables are not affected by changing the vale of the formal parameter.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -24) What is call by reference in functions?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In Call by reference method of passing arguments to functions, the addresses of the variables are passed. In this, values of variables are affected by changing the value of formal parameters.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -25) What are the differences between getchar() and scanf() functions for reading strings?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;getchar() function&lt;/b&gt; is used to get a character from the standard input device. While using the getchar() function, there is no need to hit the return key. It is used only with character data types and it can be used to get continuous stream of characters.&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;scanf() function&lt;/b&gt; is used to get input from the standard input device. Here, return key should be typed after each input. It can be used for all data types but continuous stream of inputs is not facilitated.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_1976.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 6.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6522.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 7.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_2508.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 8.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6633.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 9.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-questions.html" target="_blank"&gt;- ...Back To C Questions INDEX.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-programs.html" target="_blank"&gt;- ...Back To C Programming INDEX.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-6360380634591103757?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-questions.html' title='Frequently Asked C Interview Questions With Answers - 5.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/6360380634591103757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_8356.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6360380634591103757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/6360380634591103757'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_8356.html' title='Frequently Asked C Interview Questions With Answers - 5.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-1950766690105636623</id><published>2011-08-27T13:01:00.005+05:30</published><updated>2011-08-28T11:59:44.363+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C questions'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c'/><category scheme='http://www.blogger.com/atom/ns#' term='c sample interview questions'/><title type='text'>Frequently Asked C Interview Questions With Answers - 4.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on “C Programming language”. Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -16) What are the differences between a structure and a union?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;structure is a collection of data&lt;/b&gt; in which all the declared members are public by default. Data security is limited in structure.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Union is almost the same as the structure&lt;/b&gt; as structure contains members of different data types. In structure, each member has its own memory location whereas members of unions have same memory locations. We can assign values to only one member at a time in union.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -17) What is meant by union?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Union is almost the same as the structure as structure&lt;/b&gt; contains members of different data types. In structure, each member has its own memory location whereas members of unions have same memory locations. We can assign values to only one member at a time in union.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -18) What are the advantages of unions?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The greatest &lt;b&gt;advantage of union is that it saves memory. &lt;/b&gt;When a union is declared, compiler automatically allocates a memory location to hold the largest data type of members in the union, thereby saving memory. Further, the concept of union is useful when it is not necessary to assign the values to all the members of the union at a time. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -19) How can typedef be used to define a type of structure?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;typedef is &lt;b&gt;used for defining new data types of structures.&lt;/b&gt; The general syntax is:&lt;br /&gt;&lt;br /&gt;typedef type data_name;&lt;br /&gt;&lt;br /&gt;Here, type is the data type and data_name is the name for that type.&lt;br /&gt;&lt;br /&gt;For defining structures, typedef is used in the following manner: &lt;br /&gt;&lt;br /&gt;typedef struct{&lt;br /&gt;member1;&lt;br /&gt;member2;&lt;br /&gt;………………&lt;br /&gt;} dataname;&lt;br /&gt;Here, data name is another name for defining the structure.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -20) What is enumeration constant?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;When an enumeration data type is defined, a set of identifiers are specified which the data enumeration represents. Such an identifier is called an enumeration constant. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_8356.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 5.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_1976.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 6.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_6522.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 7.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_2508.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 8.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-questions.html" target="_blank"&gt;- ...Back To C Questions INDEX.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-programs.html" target="_blank"&gt;- ...Back To C Programming INDEX.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-1950766690105636623?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-questions.html' title='Frequently Asked C Interview Questions With Answers - 4.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/1950766690105636623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_7338.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1950766690105636623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/1950766690105636623'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_7338.html' title='Frequently Asked C Interview Questions With Answers - 4.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-5168983083249801351</id><published>2011-08-27T12:55:00.003+05:30</published><updated>2011-08-28T11:59:52.887+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C questions'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c'/><category scheme='http://www.blogger.com/atom/ns#' term='c sample interview questions'/><title type='text'>Frequently Asked C Interview Questions With Answers - 3.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on “C Programming language”. Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -11) Which bitwise operator is used for checking whether a particular bit is ON or OFF?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;bitwise AND operator&lt;/b&gt; is used for checking whether a particular bit is ON or OFF.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -12) Which bitwise operator is used for turning OFF a particular bit in a number?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Bitwise AND operator (&amp;amp;) and one’s complement operator (~) are suitable for turning OFF a particular bit in a number.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -13) What is equivalent of multiplying an unsigned int by 2: left shift of number by 1 or right shift of number by1?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Left shifting of an unsigned integer is equivalent to multiplying an unsigned int by 2.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -14) What is Enumeration?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enumeration is data type. In C++, the user can create user defined data types and define values using them. This helps to make the program more readable. Enumeration data types are defined in similar ways as structures.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -15) What is a structure?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A structure is a collection of data in which all the declared members are public by default. Data security is limited in structure. The general format of declaration of a structure is:&lt;br /&gt;&lt;br /&gt;struct &lt;br /&gt;{&lt;br /&gt;Member1;&lt;br /&gt;Member 2;&lt;br /&gt;……………….	&lt;br /&gt;……………….&lt;br /&gt;Member m;&lt;br /&gt;} var;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 1.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_27.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 2.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_7338.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 4.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_8356.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 5.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-questions.html" target="_blank"&gt;- ...Back To C Questions INDEX.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-programs.html" target="_blank"&gt;- ...Back To C Programming INDEX.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-5168983083249801351?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-questions.html' title='Frequently Asked C Interview Questions With Answers - 3.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/5168983083249801351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_881.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5168983083249801351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/5168983083249801351'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_881.html' title='Frequently Asked C Interview Questions With Answers - 3.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-3083968169348920276</id><published>2011-08-27T12:47:00.003+05:30</published><updated>2011-08-28T12:00:01.144+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C questions'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c'/><category scheme='http://www.blogger.com/atom/ns#' term='c sample interview questions'/><title type='text'>Frequently Asked C Interview Questions With Answers - 2.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on “C Programming language”. Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -6) What is scope &amp;amp; storage allocation of extern and global variables?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Extern variables are global variables.&lt;/b&gt; These variables belong to the external storage class and are stored in the system’s main memory. They are declared in a separate source file which could be outside the current program scope. The &lt;b&gt;scope of these variables is global.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Global variables are variables declared above the main function. &lt;/b&gt;They are accessible throughout the program. They have 0 as the default value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -7) What is scope &amp;amp; storage allocation of register?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Register variables&lt;/b&gt; are storage allocated in the CPU registers. Since they are stored in the CPU registers, their storage and accessibility is much easier and faster than other variables. The &lt;b&gt;scope of register variables&lt;/b&gt; is local to the blocks in which they are defined.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -8) What is scope &amp;amp; storage allocation of static and local variables?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;storage allocation of static variables is done at the beginning of program execution&lt;/b&gt;. After the program terminates, the memory is reallocated. Scope of static variables is local to the block within which they are defined.&lt;br /&gt;&lt;br /&gt;Local variables are variables defined within a function or program. Their &lt;b&gt;default value is a garbage value&lt;/b&gt; and they are accessed only by the particular function or program.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -9) What is the difference between 'break' and 'continue' statements?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;break keyword is used to terminate a loop or exit from a block&lt;/b&gt;. After exiting, the program control jumps to the statement after the loop or block.&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;continue&lt;/b&gt; keyword is used to &lt;b&gt;skip a current iteration and move to the next iteration.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -10) What is the difference between uses of 'for' and 'while' loops?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;When a user wants to initialize, check condition and increment or decrement the value of a variable in a single statement, and using an iterative loop, then the &lt;b&gt;loop used may be for loop.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;When the user wants to initialize, check condition and increment or decrement value not using a single iterative loop, then he/she &lt;b&gt;may use the while loop.&lt;/b&gt; Only one condition can be checked using the while loop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 1.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_881.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 3.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_7338.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 4.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_8356.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 5.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-questions.html" target="_blank"&gt;- ...Back To C Questions INDEX.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-programs.html" target="_blank"&gt;- ...Back To C Programming INDEX.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-3083968169348920276?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-questions.html' title='Frequently Asked C Interview Questions With Answers - 2.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/3083968169348920276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3083968169348920276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/3083968169348920276'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_27.html' title='Frequently Asked C Interview Questions With Answers - 2.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-7989861250003749506</id><published>2011-08-27T12:37:00.008+05:30</published><updated>2011-10-19T19:57:41.539+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c frequently asked interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='IT Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C questions'/><category scheme='http://www.blogger.com/atom/ns#' term='questions C'/><category scheme='http://www.blogger.com/atom/ns#' term='faq-c'/><category scheme='http://www.blogger.com/atom/ns#' term='c sample interview questions'/><title type='text'>Frequently Asked C Interview Questions With Answers - 1.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;Here, are some sample questions based on “C Programming language”. Read it carefully as these questions will help you in cracking any interview.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -1) What is the difference between declaring a variable and defining a variable?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;difference&lt;/b&gt; between&lt;b&gt; declaring a variable&lt;/b&gt; and &lt;b&gt;defining a variable&lt;/b&gt; is that while &lt;b&gt;declaring a variable&lt;/b&gt;, the compiler verifies if the variable has been defined elsewhere but does not allocate memory for that variable. It is a kind of explicit declaration of a variable. &lt;br /&gt;&lt;br /&gt;But while &lt;b&gt;defining a variable&lt;/b&gt;, the compiler allocates specific memory for the variable and initializes the variable to some value. Normally, variables are declared after defining.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -2) Define static variable?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A &lt;b&gt;static variable is a variable&lt;/b&gt; which has been allocated statically. i.e., the life of the variable extends as long as the entire run of the program. &lt;b&gt;Static variables&lt;/b&gt; are global variables and find wide use in programs. It is declared as: &lt;br /&gt;&lt;br /&gt;&lt;b&gt;static datatype variable;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -3) What is a register variable?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Register variables&lt;/b&gt; are special variants of automatic variables. &lt;b&gt;Register variables&lt;/b&gt; are stored in processor registers. The system register provides a certain control of efficiency of the program when variables are declared as register variables. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -4) Where is an auto variable stored?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;An &lt;b&gt;auto variable&lt;/b&gt; is stored in the computer’s main memory.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Question -5) What is meant by scope and storage allocation of a variable or function?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;b&gt;scope of a variable&lt;/b&gt; is defined by the storage allocation of that variable. Storage allocation of a variable decides the memory part where storage space is allocated for a particular variable or function. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ALSO READ:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_27.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 2.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_881.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 3.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions_7338.html" target="_blank"&gt;- Frequently Asked C Interviews Questions With Answers - 4.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-questions.html" target="_blank"&gt;- ...Back To C Questions INDEX.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-programs.html" target="_blank"&gt;- ...Back To C Programming INDEX.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-7989861250003749506?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-questions.html' title='Frequently Asked C Interview Questions With Answers - 1.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/7989861250003749506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7989861250003749506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/7989861250003749506'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/frequently-asked-c-interviews-questions.html' title='Frequently Asked C Interview Questions With Answers - 1.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-8538426211349769287</id><published>2011-08-16T22:57:00.001+05:30</published><updated>2011-10-19T19:52:48.579+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview question'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c language interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Add Two Numbers Using Pointers.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;int main()&lt;br /&gt;{   &lt;br /&gt;&lt;br /&gt;int x, y, *p, *q, sum;&lt;br /&gt;printf(" &lt;b&gt;Enter two integers to add&lt;/b&gt; " );&lt;br /&gt;scanf(" %d %d ", &amp;amp;x, &amp;amp;y );&lt;br /&gt;&lt;br /&gt;p = &amp;amp;x;&lt;br /&gt;q = &amp;amp;y;&lt;br /&gt;sum = *p + *q;&lt;br /&gt;&lt;br /&gt;printf("&lt;b&gt; Sum of entered numbers =&lt;/b&gt; %d\n ", sum );&lt;br /&gt;getch();&lt;br /&gt;return 0;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter two integers to add 3&lt;br /&gt;6&lt;br /&gt;Sum of entered numbers = 9&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Sample C Program To Print Floyd’s Triangle.&lt;/h3&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;main()&lt;br /&gt;{  &lt;br /&gt;&lt;br /&gt;int n, i,  c, number = 1;&lt;br /&gt;printf(" &lt;b&gt;Enter the number of rows of Floyd's triangle you want&lt;/b&gt; " );&lt;br /&gt;scanf(" %d ", &amp;amp;n );&lt;br /&gt;&lt;br /&gt;for ( i = 1 ; i &amp;lt;= n ; i++ )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for ( c = 1 ; c &amp;lt;= i ; c++ )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(" %d ", number );&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; number++;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printf(" \n " );&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;return 0;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the number of rows of &lt;b&gt;Floyd’s triangle&lt;/b&gt; you want 6&lt;br /&gt;1&lt;br /&gt;2 3&lt;br /&gt;4 5 6&lt;br /&gt;7 8 9 10&lt;br /&gt;11 12 13 14 15&lt;br /&gt;16 17 18 19 20 21&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-arithmetic.html" target="_blank"&gt;Sample C Program To Understand Working Of Address Concept.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-use-of-array.html" target="_blank"&gt;Sample C Program On Use Of Array &amp;amp; Pointer Concept Together.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-on-pointers-2.html" target="_blank"&gt;Sample C Program On Pointers &amp;amp; 2 - Dimensional Array.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-program-on-strings-into-array-of.html" target="_blank"&gt;Sample C Program On Strings Into Array Of Pointers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-accept-add-ten.html" target="_blank"&gt;Sample C Program To Accept &amp;amp; Add Ten Numbers Using Pointers.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/p/c-programs.html" target="_blank"&gt;... Back To C Program Index.&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7193443141636972330-8538426211349769287?l=www.interview-made-easy.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.interview-made-easy.com/p/c-programs.html' title='Sample C Program To Add Two Numbers Using Pointers.'/><link rel='replies' type='application/atom+xml' href='http://www.interview-made-easy.com/feeds/8538426211349769287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.interview-made-easy.com/2011/08/sample-c-program-to-add-two-numbers_16.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8538426211349769287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7193443141636972330/posts/default/8538426211349769287'/><link rel='alternate' type='text/html' href='http://www.interview-made-easy.com/2011/08/sample-c-program-to-add-two-numbers_16.html' title='Sample C Program To Add Two Numbers Using Pointers.'/><author><name>Uttam Agrawal</name><uri>http://www.blogger.com/profile/14782822449937945628</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7193443141636972330.post-1872022378004334553</id><published>2011-08-16T22:42:00.001+05:30</published><updated>2011-10-19T19:49:38.020+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample c program'/><category scheme='http://www.blogger.com/atom/ns#' term='c snippets'/><category scheme='http://www.blogger.com/atom/ns#' term='c interview question'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs examples'/><category scheme='http://www.blogger.com/atom/ns#' term='c language interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='c programs asked in interviews with answers'/><category scheme='http://www.blogger.com/atom/ns#' term='sample c code'/><title type='text'>Sample C Program To Concatenate Two Strings.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include &amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{  &lt;br /&gt;char a[100], b[100];&lt;br /&gt;printf(" &lt;b&gt;Enter the first string&lt;/b&gt; " );&lt;br /&gt;gets(a);&lt;br /&gt;&lt;br /&gt;printf("&lt;b&gt; Enter the second string&lt;/b&gt; " );&lt;br /&gt;gets(b);&lt;br /&gt;&lt;br /&gt;strcat( a, b );&lt;br /&gt;printf(" &lt;b&gt;String obtained on concatenation is &lt;/b&gt;%s\n ", a );&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;return 0;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the first string Team&lt;br /&gt;Enter the second string mates&lt;br /&gt;String obtained on concatenation is Teammates&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: 19px; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: 19px; font-weight: bold;"&gt;Sample C Program To Swap Two Strings.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;conio.h&amp;gt;&lt;br /&gt;#include &amp;lt;malloc.h&amp;gt;&lt;br /&gt;#include &amp;lt;string.h&amp;gt;&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{  &lt;br /&gt;&lt;br /&gt;char first[100], second[100], *temp;&lt;br /&gt;printf("&lt;b&gt; Enter the first string&lt;/b&gt; " );&lt;br /&gt;gets(first);&lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;Enter the second string&lt;/b&gt; " );&lt;br /&gt;gets(second);&lt;br /&gt;&lt;br /&gt;printf(" \n&lt;b&gt;Before Swapping&lt;/b&gt;\n " );&lt;br /&gt;printf(" &lt;b&gt;First string:&lt;/b&gt; %s\n ", first );&lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;Second string: &lt;/b&gt;%s\n\n ", second );&lt;br /&gt;temp = ( char* )malloc( 100 );&lt;br /&gt;&lt;br /&gt;strcpy( temp, first );&lt;br /&gt;strcpy( first, second );&lt;br /&gt;strcpy( second, temp );&lt;br /&gt;&lt;br /&gt;printf(" &lt;b&gt;After Swapping&lt;/b&gt;\n " );&lt;br /&gt;printf(" &lt;b&gt;First string:&lt;/b&gt; %s\n ", first );&lt;br /&gt;printf("&lt;b&gt; Second string:&lt;/b&gt; %s\n ", second );&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;return 0;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter the first string little&lt;br /&gt;Enter the second string flower&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Before Swapping&lt;/b&gt;&lt;br /&gt;First string: little&lt;br /&gt;Second string: flower&lt;br /&gt;&lt;br /&gt;&lt;b&gt;After Swapping&lt;/b&gt;&lt;br /&gt;First string: flower&lt;br /&gt;Second string: little&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ALSO READ:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-sort-given-number.html" target="_blank"&gt;Sample C Program To Sort A Given Number Of Strings Using strcmp() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-display-array-of.html" target="_blank"&gt;Sample C Program To Display Array Of Strings.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/10/sample-c-program-to-convert-string-to.html" target="_blank"&gt;Sample C Program To Convert String To An Integer Using atoi() Function.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-greatest-among.html" target="_blank"&gt;Sample C Program To Find The Length Of A String.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.interview-made-easy.com/2011/08/sample-c-program-to-find-reverse-of.html" target="_blank"&gt;Sample C Program To Check Whether A String Is Palindrome Or Not.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="
