answersLogoWhite

0

network protocols

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

Does there exist any way to make the command line argument available to other function without passing them as arrguments to function?

The only way this can be achieved is by storing the command line arguments in global variables. However, this is not recommended. Global variables should only be used to represent truly global concepts, but command line arguments are local to the main function. The main function's primary role is to parse the command line arguments and invoke the appropriate functions, passing any required arguments (by value) to those functions that specifically require them. The main function's secondary role is to handle any exceptions not handled by the functions that it invokes.


What is the advantage of an outline function?

Outline functions are primarily advantageous in debug code. By default, functions are never inline expanded in debug code (where NDEBUG is not defined) because debug code should never be optimised. This is simply because it much easier to map the assembly to the source code using outline functions.In release builds (where NDEBUG is defined), functions are only inline expanded when there is an advantage in doing so. Trivial one-line functions are good candidates, as are complex functions that are only invoked in one place. Functions that increase code size are rarely good candidates so these will remain outline functions. Note that the programmer has no real control over which functions will be inline expanded. In particular, the inlinekeyword has had no bearing on inline expansion since 1998; it is used solely as a linkage directive when defining a non-member function in a header.


What are the different methods to identify functions?

Functions can be identified using several methods, including the vertical line test, which determines if each x-value corresponds to only one y-value on a graph. Algebraically, functions can be expressed using equations, where each input leads to a unique output. Additionally, mapping diagrams visually represent the relationship between inputs and outputs, while tables of values can show how different inputs correspond to specific outputs. Lastly, real-world context can help identify functions by establishing consistent relationships between variables.


What is the difference between business function and management function?

Functions of Management are planning: planning premises; types of plan; planning process; organizing: span of control and organizational structure, line and staff functions and conflicts; centralization and decentralization; delegation; staffing: manpower planning, recruitment, selection and placemen; induction training; directing: principles of direction; coordinating, and controlling. Wheras Business functions are Purchase,Production,Marketing,Finanace,HR,Operations. REJI ISMAIL reji.ismail786@gmail.com


Friends pls clear my doubt In C function should be defined after main function as a Good programming style Why?

First question: You can define zero or more functions before main, and zero or more functions after it. It's up to you. Of course you have to have prototypes for functions which are called before their definitions.Second question: Good programming style includes many things, for example:- keep your functions simple, short, easy to understand and modify- orginize the code into modules (separate source files), the size of a module should be below a few thousands line.- don't use global variable instead of function parameters

Related Questions

What is line access and avoidence of collision?

Line access and avoidance of collision are the main functions of


What are the three functions of a wireless bridge?

It can function as a Bridge, Relay, and Access Point. In Bridge mode it connects multiple access points to a single fixed line. In relay mode it connects multiple access points to a remote access point. And as a traditional access point it provides network access to wireless clients.


Why is there no horizontal-line test for functions?

there is no horizontal-line test for functions, because people do not do the test that is why !!!


What are non linear functions?

Functions that do not result in a line when graphed.


What is the difference between a credit access line and a cash access line?

A credit access line allows you to borrow money up to a certain limit, while a cash access line allows you to withdraw cash directly from your account up to a certain limit.


What is the first line of defense against a deadly collision?

Wearing your seat belt. ^ um, no


What is first line of defense against a deadly collision?

Wearing your seat belt. ^ um, no


Which option is a valid configuration line for enabling access list 102 on a vty line?

router(config-line)#access-class 102 in


How are symptoms of porphyria cutanea tarda prevented?

The first line of defense is avoidance of factors, especially alcohol, that could bring about symptoms.


What is the meaning of a cash access line with Chase?

A cash access line with Chase is a credit line that allows you to withdraw cash from your credit card account.


What is a join line in access?

the line joining two tables


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

You can copy them into global variables in the main() function, then have your other functions access those global variables. Global variables should generally be avoided, however.