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 |
application attempts to perform an operation?
Explain function?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
write a C program to print the program itself ?!
what are the stoge class in C and tel the scope and life time of it?
What is pointer to pointer in c with example?
Explain what is a const pointer?
Write a program to find the number of times that a given word(i.e. a short string) occurs in a sentence (i.e. a long string!). Read data from standard input. The first line is a single word, which is followed by general text on the second line. Read both up to a newline character, and insert a terminating null before processing. Typical output should be: The word is "the". The sentence is "the cat sat on the mat". The word occurs 2 times.
How to compare array with pointer in c?
1.)how to find d most repeated word in a string? string ="how do you do"?? output should be do
1 Answers AAS, Nagarro, Vuram,
What is stack in c?
Write a program to print distinct words in an input along with their count in input in decreasing order of their count