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 |
main() { int i; printf("%d",((i=1)*i-- - --i*(i=-3)*i++ + ++i)); } ans is 24 bt how?pls tell smbody............
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What does the function toupper() do?
a=5 a=a++/++a
How can I get random integers in a certain range?
Add Two Numbers Without Using the Addition Operator
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Convert the following expression to postfix and prefix X $ Y Z - M + N + P / Q / (R + S)
What does the characters “r” and “w” mean when writing programs that will make use of files?
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?
Describe the modifier in c?