what is the structure?
Answers were Sorted based on User's Feedback
Answer / som87
A Structure in C is a collection of different data types.
While in C++ a structure consist of Data types and functions.
| Is This Answer Correct ? | 10 Yes | 3 No |
Answer / suriya
Structures are the C equivalent of records. A structure type
is defined by
struct struct-name
{
type field-name;
type field-name; ...
}
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / a\sivasankar.a
structure is an derived data type and it is a collection of
different data types stored in s single stucture
| Is This Answer Correct ? | 1 Yes | 0 No |
How do you define structure?
You are given a string which contains some special characters. You also have set of special characters. You are given other string (call it as pattern string). Your job is to write a program to replace each special characters in given string by pattern string. You are not allowed to create new resulting string. You need to allocate some new memory to given existing string but constraint is you can only allocate memory one time. Allocate memory exactly what you need not more not less.
What is the heap?
Please write the area of a RIGHT ANGLED TRIANGLE.
What is calloc malloc realloc in c?
why java is called as a purely oops language.
Why enum is used in c?
void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?
Explain how are portions of a program disabled in demo versions?
List some of the dynamic data structures in C?
write a programme that inputs a number by user and gives its multiplication table.
write a c/c++ program that takes a 5 digit number and calculates 2 power that number and prints it?