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  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
Why cann't whole array can be passed to function as value.
 Question Submitted By :: Dileep_aum
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Why cann't whole array can be passed to function as value.
Answer
# 1
ya it's possible ..... we can pass whole array as an value....

let's take the code :

void function(char [] );
void main()
{
char ch[30];
function(ch);
getch();
}

void function(char ch[])
{
printf("%s",ch);
}

thank u

hope this will work.....
 
Is This Answer Correct ?    0 Yes 3 No
Vignesh1988i
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
We can draw a box in cprogram by using only one printf();& without using graphic.h header file? NIIT3
i want to have a program to read a string and print the frequency of each character and it should work in turbo c  2
what are the compilation steps? ( i want inside the compiler )  1
what is the defrenece between structure and union  5
How many types of linked lists what are they? How many types of data structures? BSNL5
writw a program to insert an element in the begning of a doubly linked list  1
HOW TO HANDLE EXCEPTIONS IN C  5
What character terminates all strings composed of character arrays? 1) 0 2) . 3) END  3
How to implement variable argument functions ? HP1
Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program Mascot4
Program to find the absolute value of given integer using Conditional Operators N-Tech2
write a program for size of a data type without using sizeof() operator?  7
what is the difference between malloc() and calloc() function?  1
Write a program for deleting duplicate elements in an array Subex3
write a addition of two no. program with out using printf,scanf,puts .  3
what will be the result of the following program ? char *gxxx() { static char xxx[1024]; return xxx; } main() { char *g="string"; strcpy(gxxx(),g); g = gxxx(); strcpy(g,"oldstring"); printf("The string is : %s",gxxx()); } a) The string is : string b) The string is :Oldstring c) Run time error/Core dump d) Syntax error during compilation e) None of these IBM2
can we write a program in c for printf and scanf without using header file stdio.h  1
what is the difference between declaration ,defenetion and initialization of a variable? LG-Soft5
what is diff between localstatic and globalstatis variable possible 2 use in another file...? HCL2
what is the use of pointers  5
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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