can we define a function in structure?
Answers were Sorted based on User's Feedback
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 |
Explain how do you sort filenames in a directory?
please give me some tips for the selection in TCS.
What is the difference b/w Structure & Class?
Explain how can you tell whether two strings are the same?
What is period operator in c?
can please someone teach me how to create this program using while statement.. this is the output should look like 0 2 4 6 8 10 -thanks.. :) need it asap...
Write a program to print factorial of given number using recursion?
What is the correct code to have following output in c using nested for loop?
What is a rvalue?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
Write a program to generate prime factors of a given integer?
Hai why 'c' is the middle language