Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


can we define a function in structure?

Answers were Sorted based on User's Feedback



can we define a function in structure?..

Answer / sandeep

We Can't define function inside the structure

Is This Answer Correct ?    4 Yes 3 No

can we define a function in structure?..

Answer / anandhi

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

Post New Answer

More C Interview Questions

print out of string in this format; 1. "rajesh" 2. \n 3. %d

5 Answers   mpower,


what r the cpu registers r ther?

1 Answers  


Hai why 'c' is the middle language

4 Answers  


While(1) { } when this loop get terminate is it a infinite loop?

5 Answers  


a c code by using memory allocation for add ,multiply of sprase matrixes

0 Answers  


What is property type c?

0 Answers  


What are different types of variables in c?

0 Answers  


what is the difference between static variable and register variable?

3 Answers  


what is a void pointer?

2 Answers  


what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }

3 Answers  


why little endian and big endian came?y they using differently? y they not used commonly ?wt is application of little and big ?

1 Answers  


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

0 Answers  


Categories