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
 
Explain demand paging.   1
difference between spiral and waterfall model   1
two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast. Verifone 5
what is the code to display color fonts in the output?   1
Write a programm such that if user enter 11.25 it roundup to 11 but if user enter 11.51 upto 11.99 it will round up to 12 i.e.;convert the floting point value into integer format as explain above..   2
What is the most efficient way to count the number of bits which are set in a value?   4
write a program to display the numbers having digit 9 in the given range from 1 to 100   1
if function is declared as static in one source file, if I would like to use the same function in some other source file...is it possible....how ? NetApp 2
Consider the following C program. #include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How many processes are created when running this program (including the initial one)? Explain   2
what does ‘segmentation violation’ mean?   1
how to find the size of the data type like int,float without using the sizeof operator?   13
What are the commands should be given before weiting C Program i.e, Cd.. like Infonet 4
 
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