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 (2266)
 C++ interview questions  C++ Interview Questions (1121)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (652)
Question
can we define a function in structure?
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
We Can't define function inside the structure 
Is This Answer Correct ?    4 Yes 3 No
Sandeep
 
Answer
# 2
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
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
which is the best site or book for learning C...and i need the content for C..how to get the good programming skills....? can plz suggest me....   2
who developed c and why he developed c?   5
Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.   1
difference between semaphores and mutex?   1
write a program that will accept two integers and will implement division without using the division operator if the second value is an odd number and will implement multiplication without using multiplication operator if the second value is an even number.   1
write a C program : To find out the number of identical words in two files . the file name should be taken as command line argument . Subex 1
What is the difference b/w Structure & Array?   6
what will be the output for the following program? main() { char ch = 'k'; char c; printf("%c",c); }   3
what is difference between null and nul in c language   2
write a program in c to read array check element is present or not?   1
how to find sum of digits in C? CTS 21
write a program that explain #define and # undef directive   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