GeekInterview.com
  I am new, Sign me up!
 

C Interview Questions


C Interview Questions

Questions: 457
Comments: 1564
 Showing Questions 1-10 of 457 Questions
[1] 2 3 4 5 6 7 8 9 10 Next >>
 Sponsored Links

 
 C Interview Questions
Sorting Options :  

Will this code cause an error during runtime, error during compilation, or no error? 1.) char str[5]; strcpy (str, "hello"); 2.) char *str; strcpy (str, "hello"); 
Latest Answer: Both will give segmentation fault.For first str[6] is required and for second we have to do malloc for pointer ...
Read Answers (4) | Asked by : Mike67

Explain srand() and rand() Functions 
View Question | Asked by : shiv29

If we add a element to the last of a sorted sequence. Then which of the sorting method will be most efficient to sort the new sequence? 
Latest Answer: I think radix sorting would be more perfect in case of large sequence of elements as because it will reduce the no. of elements to be compared to a minimal. As it goes on to check the inserted element wid the center of the sequence and rules out ...

How will you find the number of occurrences of a particular string in the given input string? 
Latest Answer: int computeSubStrings(const char *string,const char *substr){ int count = 0; char *token = strstr(string,substr); while(token != NULL) { count++; token = strstr(token + 1,substr); } return count;}The above function can be used for counting no. of occurences ...

Explain How Terminate & Stay Resident (TSR) and Offline programming differ from one another. 
Latest Answer: TSR stands for Terminate- and Stay-Resident programs.TSR are programs which get loaded in memory and remain or stay there (resident) in memory permanently. They will be removed only when the computer is rebooted or if the TSR is explicitly removed from ...
Read Answers (1) | Asked by : ramji70

How will you execute a file from another C program through C programming without system command?  
Latest Answer: The question here asks "how to run another progam without using a system call". I do not think it is possible to run another program without using exec. ...

printf("%d%d",f1(),f2());What is the sequence of function execution of the above statement. 1. printf, f1(), f2()2. printf, f2(), f1()3. f1(), f2(), printf4. f2(), f1(), printf. 
Latest Answer: Many has provided correct answer.The Best way is to examine the assembly code.    printf("This is printf()n", f1(), f2());// CALL f2000213DE  call        f2 (21091h) 000213E3  mov         ...
Read Answers (9) | Asked by : pn_5449

Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object, calling of that virtual method will result in which method 
Latest Answer: As explained, you have assigned the base class pointer to the derived class object, the derived class method will get called. ...
Read Answers (3) | Asked by : dilzmail

Write a C programme that read 30 integer numbers into one dimension array then using a function to sort them in desinding order (this function should use another function to exchange any two elements int 
Latest Answer: Hi ,      Let break the question into three parts      1-Read 3o intgers and store them in one dimensional array.      2. Write one function to sort them in descending order.Let ...
Read Answers (4) | Asked by : Narmeen

Write the implementation of Fix function? fix(2.5) = 2 and fix(-2.25) = -3, this is the expected result. Write the code to implement this behaviour? 
Latest Answer: int fix(float f1){       return(floor(f1));} ...

View page [1] 2 3 4 5 6 7 8 9 10 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Expert Members
# User Name Count
1abhimanipal 46
2jintojos 29
3dasam 27
4baseersd 20
5burraganesh 20
6suji 20
7pbchaudhari 19
8yzesong 17
9SomGollakota 17
10vipin gupta 15
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape