ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Code Snippets  >>  Programming Code  >>  C Code
 
 


 

 
 C Code interview questions  C Code Interview Questions
 C++ Code interview questions  C++ Code Interview Questions
 VC++ Code interview questions  VC++ Code Interview Questions
 Java Code interview questions  Java Code Interview Questions
 Dot Net Code interview questions  Dot Net Code Interview Questions
 Visual Basic Code interview questions  Visual Basic Code Interview Questions
 Programming Code AllOther interview questions  Programming Code AllOther Interview Questions
Question
how to return a multiple value from a function?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to return a multiple value from a function?
Answer
# 1
using call by refernce
 
Is This Answer Correct ?    0 Yes 0 No
Chandu
 
  Re: how to return a multiple value from a function?
Answer
# 2
use call by refrance..-> pointers.
 
Is This Answer Correct ?    0 Yes 0 No
Shruti
 
 
 
  Re: how to return a multiple value from a function?
Answer
# 3
using if else statement
for example
int fun()
{
if(cond1)
return var1;
else
return var2;

}
 
Is This Answer Correct ?    0 Yes 3 No
Vinayakkatkar
 
  Re: how to return a multiple value from a function?
Answer
# 4
string f()
{
   return "a multiple value"; 
}

:) if this a trick question ...
 
Is This Answer Correct ?    0 Yes 1 No
Ara
 

 
 
 
Other C Code Interview Questions
 
  Question Asked @ Answers
 
What is the main difference between STRUCTURE and UNION?  3
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. Microsoft8
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it. Wipro2
Print an integer using only putchar. Try doing it without using extra storage.  1
Finding a number multiplication of 8 with out using arithmetic operator NetApp7
1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18. Infosys3
how to return a multiple value from a function? Wipro1
plz send me all data structure related programs  2
What is "far" and "near" pointers in "c"...?  2
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.  5
Give a very good method to count the number of ones in a 32 bit number. (caution: looping through testing each bit is not a solution) Microsoft4
Write a program that find and print how many odd numbers in a binary tree  1
Program to find the largest sum of contiguous integers in the array. O(n)  5
write a program to Insert in a sorted list Microsoft4
String reverse with time complexity of n/2 with out using temporary variable. NetApp7
how to return a multiple value from a function? Wipro4
Given a list of numbers ( fixed list) Now given any other list, how can you efficiently find out if there is any element in the second list that is an element of the first list (fixed list) Disney2
Link list in reverse order. NetApp7
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h  1
how can u draw a rectangle in C Wipro24
 
For more C Code Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com