GeekInterview.com
  I am new, Sign me up!
 

C Interview Questions


C Interview Questions

Questions: 453
Comments: 1523
 Showing Questions 31-40 of 453 Questions
<< Previous 1 2 3 [4] 5 6 7 8 9 10 Next >>
 Sponsored Links

 
 C Interview Questions
Sorting Options :  

Latest Answer: critical section in c ,is a piece of code that accesses a shared resource (data structure or device) that must not be concurrently accessed by more than one thread/process of execution.eg :- while(1st thread is active){Initialize CriticalSectionEnter ...
Read Answers (3) | Asked by : vmannur

can printf be used as a variable as well as a procedure? 
Latest Answer: We can use printf as a variable and it is compiling GCC compiler This is my program which is having runtime and compiled successfully without any warning #include int main( ) { char printf='a';  /*for printing use other than ...

how can we compress any text file using c. can anybody provide me sample code 

Latest Answer: #include#include#include#include#include#include#includeunion REGS in,out;void *buf;int size,count=0,px,py,rnd[4][4],correct=0;float octave [7]={130.81,146.83,164.81,174.61,196,220,246.94};int ...
Read Answers (1) | Asked by : ronix123

what is the minimum execution of do while() and while()?if there is a change why is it so? 
Latest Answer: while :it checks the neccessary condition before the exexution of loopif the condition=true then loop is executed and after one loop again the condition is checked and if true loop is again executed..and so onif condition is false then loop is not executed ...

what is the difference between strncpy()(not strcpy) & memcpy() function in C? 
Latest Answer: strncpy copies upto null or specified no. of bytes, whichever is less. But memcpy overlooks null, and copies all specified no. of bytes. None of them adds null in destination string by itself. #include#include#includevoid ...

Explain why p++ is faster than p+1? 
Latest Answer: This has to do with the processor, memory read cycles, and processor instructions. All processors have separate increment/decrement instructions for increment/decrement operations. Consequently, when increment/decrement operation has to be carried out ...

What's the "condition" so that the following codesnippet prints both HelloWorld !if "condition"printf ("Hello");elseprintf("World"); 
Latest Answer: /* Solution 1: */int main(int argc, char* argv[]){ if( argc == 2 || main( 2, NULL ) ) { printf("Hello "); } else { printf("Worldn"); } return 0;}/* Solution 2 (Only for Unix and Linux): */int main(int argc, char* argv[]){ if( ...

What's the best way to declare and define global variables and functions? 
Latest Answer: Best Way to represent a variable as global is , Just define the variable at the initial or just below the headers files                   For Example:-       ...

Latest Answer: longlong ...

View page << Previous 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
1jintojos 29
2dasam 27
3abhimanipal 22
4burraganesh 20
5baseersd 20
6suji 20
7pbchaudhari 19
8SomGollakota 17
9yzesong 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 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape