struct response {
string resp[MAXSIZE];
string type[MAXSIZE];
int n;
}res;
What is purpose of res; in following struct?
254 Views Asked by AudioBubble At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in STRUCT
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Allocating memory for pointers inside structures in functions
- Understanding difference in Swift properties for structs and classes in assignment
- All struct identifiers are automatically forward declared
- Efficiency penalty of initializing a struct/class within a loop
- C++ Struct prototyping in separate header file
- struct array initialize with a variable
- How do I do a literal *int64 in Go?
- Serializing a struct whose definition is not known
- Passive Objects in C++
- C++ reading a file into a struct
- C program crashes when I tried to set an element of type char* in my struct to a specific string?
- Reading binary file into struct
- Having two structs refer to each other's variables in C++
- How do I access this array of structs - Swift
Related Questions in DECLARATION
- Function returning another function
- Is "long long" = "long long int" = "long int long" = "int long long"?
- What is the point of declaring a variable as one class, and allocating memory to it with another class?
- In which part of memory different variables get stored? Who will assign the value to it before starting main?
- What's the benefit for a C source file include its own header file
- Error: Not found: Value S (Scala)
- How to properly declare handlers
- Php Variable declaration error - MySQL
- Where is the AMPathPopUpButton class declared?
- Expected identifier in C
- C++ declaring multiple variables in the same line
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'oxm:jaxb2-marshaller'
- C++ constructor bug
- Error w/declaration on else statement (C++)
- Angular: when using ng-include, number variable become NaN
Related Questions in DEFINITION
- check function definition php
- "Multiple definition", "first defined here" errors
- F# Circular Type Definition Loop
- Why does my compiler insist on unused function definitions only for virtual?
- Declaring functions and variables multiple times in C++
- How can I implement my explicit override outside the class declaration?
- Can you define a static method outside of a class?
- What does it mean to 'trace' something in Java?
- definition of the term "syntactic form"
- Understanding the Instruments Time Profiler column headings
- Cscope output all parameters
- Curry-Howard isomorphism definitions in Coq using fun
- Why is a typedef declaration not called a typedef definition?
- How to get SpecFlow to change step definition when renaming step in feature file?
- SOAP request deconstruction
Related Questions in TYPESPEC
- Is it legal to redefine a type name?
- switch have error "expected a type specifier" (C)
- Difference between binary, String.t, char_list and [char] in a typespec
- Typed list typespec never breaks the contract
- can you tell me why this error appears? it concerns function pointers
- What is purpose of res; in following struct?
- How to display typespecs from a named function through iex
- What is the meaning of an Elixir typespec with types in parenthesis separated by the pipe operator?
- `changeset()` spec requires nullable type which is not logically nullable
- How to typespec a float range in Elixir?
- Why do type specs in OTP repeat parameter names?
- How to typespec guards in a human friendly way?
- "spec has wrong arity" seen when using guard clause for Elixir spec definition
- Elixir Behaviour that returns the implementer's struct type
- Typescript: Extend exported function, add parameter, use both
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It is a declaration of an object with the name
resof the typestruct response.A structure definition can be used as a type specifier similarly like
but instead of the type int you may place the structure definition
Here is a demonstrative program
Its output is
You could write the declaration of the object
helloin one line likeBut this is less readable.
In fact it is the same as if to write