GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

C Interview Questions


C Interview Questions

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

 
 C Interview Questions
Sorting Options :  

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: #include#include#includeint fix(float);int main(){    int result;    float val;    printf("Enter the value to be converted: ");    scanf("%f",&val);    ...

How will you execute shell command without using system command in C-language? Write a program to execute ls -l and redirect the output to a file, without using system command ? 
Latest Answer: You can use exec family of system calls to get the job done. Its a nice experience, go ahead and explore it. ...

Why it is not possible to create pointer to unsingned int? 
Latest Answer: The variable the holds the address (the pointer) is not interested if the value at the address it stores is signed or unsigned. One thing is sure: it must store an int, careless if it is signed or unsigned. ...
Read Answers (1) | Asked by : ak209728

In C if a variable is not assigned a value then why does it take garbage value? 
Latest Answer: This happens only in case of local varibales. As memory for local variables are allocated on stack and while allocating the memory the runtime system does not clear the memory before allocating it to the variable unlike in case of allocating memory in ...
Read Answers (2) | Asked by : ajayvyas

What is code/binary portability? 
Latest Answer: Code portability is generally defined as C code (in the case of C) that adheres to the rules of the C standards and is Architecture (Pentium, PowerPC, MIPS, etc) as well as Platform (PC, Mac OS, Linux, etc) independent.  All you need to do with code ...
Read Answers (1) | Asked by : goksvr

Write a program that compares two files and return 0 if they are equal and 1 if they are not equal. 
Latest Answer: int main(int argc, char* argv[]) {  if(argc!=3) return -1;  FILE *fp1, *fp2;  fp1 = fopen(argv[1],"r");  fp2 = fopen(argv[2],"r");  if(!fp1 || !fp2) return -1;  while(fgetc(fp1) == fgetc(fp2) && ...

When reallocating memory if any other pointers point into same piece of memory do you have to readjust these pointers or do they get readjusted automatically? 
Latest Answer: While reallocating, there is no readjustments. The OS will just search for the required memory block(not in use) & if available pass its pointer to the user.Nb: It CAN be the same pointer you have before reallocation. ...

What is the maximum length of command line arguments including space between adjacent arguments ? 
Latest Answer: It can compile 200 words of length. ...

what is a bss data segment? 
Latest Answer: BSS, a part of Data Segment store all variables initialized to 0. static variable(initialized with value other than 0) are not stored in BSS.Actually BSS is an "Uninitialized RAM" which is initialized to 0 before executing main(). ...

which type of memory(stack or heap)is used by static and external variables? 
Latest Answer: Fully agree with vivekbansal. Static variables (not initialized to value other than 0) are always stored in BSS else in "Data" of data segment. ...

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

Ask A Question
Go Top
 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
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
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape