GeekInterview.com
  I am new, Sign me up!
 

C Interview Questions


C Interview Questions

Questions: 453
Comments: 1523
 Showing Questions 101-110 of 453 Questions
<< Previous 7 8 9 10 [11] 12 13 14 15 16 Next >>
 Sponsored Links

 
 C Interview Questions
Sorting Options :  

Which statement is true? A. Functions are declared in header files B. Functions are defined in header files
Read Answers (2) | Asked by : Rahul sharma

Latest Answer: pointer is depicted by '*' . this is  to  differentiate a pointervariable from normal variable. it will tell the compiler that it is not a normal variable, but it is a pointer variable which is holding the address of another variable.  so use of ...
Tags : Pointer

#include#includevoid main(){static int a[]={0,1,2,3,4};clrscr();int *p[]={a,a+1,a+2,a+3,a+4};printf("n%un%un%d",p,*p,*(*p));getch();}What will be the output of above program?How?

Latest Answer: A[2][3]={1,2,3,4,5,6};for(i=0;i
Read Answers (2) | Asked by : write a program to print an 2D array in spiral manner

#includevoid fun(int);void main(){ inta; a=3; fun(a); }void fun(int){ if(n>0) { fun(--n); printf("%d",n); fun(--n); } } What is the output of the above program? Explain.
0 1 2 0 

Given the values of two nodes in a *binary search tree*, write a cprogram to find the lowest common ancestor. You may assume that bothvalues already exist in the tree.The function prototype is as follows:int FindLowestCommonAncestor(node* root,int value1,int value) 20 / 8 22 / 4 12 / 10 14I/P : 4 and 14O/P : 8(Here the common ancestors of 4 and 14, are {8,20}. Of {8,20}, the lowest one is 8).
One of the solution can be to find out postorder traversal taking each node one by one. This postorder function should return true if both the values (v1 & v2) are found in the postorder traversal of the 

Latest Answer: The following program compiles with 'C' with a warning about return type of main. But it wouldn't compile with 'C++', it gives error there:void main(){return;} ...
Read Answers (1) | Asked by : gaurav pathak

Latest Answer: Yes. /*Array of Strings*/char* _animals[] = { "Tiger","Lion", "Dog", "Cat" };/*Array of ints*/int numbers[] = {1,2,3,4,5};number of elements of such arrays can be obtained bycount = (sizeof(_animals)/sizeof(_animals[0]));   ...
Read Answers (2) | Asked by : ajay

int 
Latest Answer: void ...

Latest Answer: You can also use functions like fprintf(),fputs(),gets(),fgets() instead of printf() and scanf().Here is a sample example#includeint main(){  char name[20]="";  char city[20]="";  puts("nEnter ...
Read Answers (2) | Asked by : sampathk

View page << Previous 7 8 9 10 [11] 12 13 14 15 16 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
4baseersd 20
5burraganesh 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