ALLInterview.com :: Home Page            
 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                      
Google
   
 
Categories >> Software >> Programming Languages >> C
 
 


 

 
 C interview questions  C Interview Questions (2248)
 C++ interview questions  C++ Interview Questions (1106)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (644)
Question
can we define a function in structure?
 Question Submitted By :: Vatsava
I also faced this Question!!     Rank Answer Posted By  
 
  Re: can we define a function in structure?
Answer
# 1
structure is nothing but user defined data types...
structure used then more then one datatypes used in single
strud\cture...
syntax:
struct [struct_name]
{
datatype var1;
...
...
};
struct variable creation:
syntax:
struct [name]
{
...
...
}[struct var_name];
[struct var_name].variablename;
.......................................
ex:
 
Is This Answer Correct ?    0 Yes 5 No
Anandhi
 
  Re: can we define a function in structure?
Answer
# 2
We Can't define function inside the structure 
Is This Answer Correct ?    4 Yes 3 No
Sandeep
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is pointer? HCL 13
C,c++, Java is all are structural oriented or procedure oriented language..?   6
write a c programs to do multiplication of two numbers with out using arithmatic operator ?????????? TCS 7
write a c program to remove all the duplicate characters in a string and replace with single character? ex:-input- AAABBBCCC output- ABC HCL 2
what is output of the following statetment?Printf(%x, -1<<4); ?   5
What is the difference between null pointer and void pointer CTS 6
can we write a c program with out using main   2
Without using main fn and semicolon,print remainder for a given number in C language   1
What is the diffences between Windows XP and Windows Visa Aricent 1
how to swap 2 numbers in a single statement?   2
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output? Hughes 7
write a c program to print the next of a particular no without using the arithmetic operator or looping statements? TCS 1
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com