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: 437
Comments: 1399
 Showing Questions 1-10 of 437 Questions
[1] 2 3 4 5 6 7 8 9 10 Next >>
 Sponsored Links

 
 C Interview Questions
Sorting Options :  

What is the requirment of using fflush() in multiple scanf calls. 
Latest Answer: scanf could leave some characters in the input stream based on what is specified inthe format specifier says "%s" etc. The fflush is done to take care that the subsequent scanf does not read these extraneous characters. ...

Write a program to read a file, strip the comments and write the output to another file. 
Latest Answer: {FILE *f, *of;f = fopen("c:/myprog1.cpp", "r"); of = fopen("c:/comments.cpp", "a");char* ch = new char[2]; *ch = fgetc(f);int l=0;while (!feof(f)) {if ((*ch == '/') && (fgetc(f)=='/')) {l++;do{*ch ...

Explain the virtual table generated in memory at the time of declaration of virtual function? 

What is the slack memory concept in allocation of structure memory? 

Write a program in C that does nothing not even takes memory? 
Latest Answer: void main(){} ...

Write a program in C to display output as "hello world" without using semicolon(;)? 
Latest Answer: main(){if(printf("hello world"))} ...

What is Field Width Specification? 
Latest Answer: field width specification means to allocate the a particular fixed  size of a varriable whether varriable is small in size or big.eg:if we allocate a field width of a varriable is 10 and the varriable is a[5] then it will just take a five block ...

What is BSS segment? Where it will be? 
Latest Answer: BSS stores the variables which are initialized to 0 ...

1. #define MAX 1002. main()3. {4. int max=100;5. int a[MAX];6. int b[max];7. } 
Latest Answer: On 5th statement work fine. But on 6 the statement it gives compilation error. error C2057: expected constant expression error C2466: cannot allocate an array of constant size 0 error C2133: 'b' : unknown size Conclusion: The macro value expansion ...

we say stack is allocated to the local variables ,formal arguments and return addresses of a function for manipulating function calls?but the question arises when does the stack allocation to above things 
Latest Answer: Memory is allocated only during the runtime, and compiler just decides the amount of memory needed by each variable... It just adds the displacement value to be added to the Base Stack pointer for "Local Variables" Allocation. ...

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
# User Name Count
1jintojos 29
2dasam 27
3baseersd 20
4suji 20
5pbchaudhari 19
6SomGollakota 17
7vipin gupta 15
8mohit12379 13
9venkatesh 12
10Rujul 11
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

 
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