answersLogoWhite

0

we have to construct a table of two field structures,where the first field is the funtion name as a string and the second field is just the function name.then search the table to get a string match in the first field and use the second field to call the function.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

1 Write a function called hello that given a persons name as a string returns the string hello followed by the name?

Here’s a simple Python function called hello that takes a person's name as a string and returns the greeting: def hello(name): return f"hello {name}" When you call hello("Alice"), it will return the string "hello Alice".


How are the strings passed to a function?

By reference. The name of the string is converted to a pointer (in C/C++) and given to the function as the address of the first element. (In Java, all objects are passed by reference, and there are no pointers.)


How do you use MID function in qbasic?

...QBASIC program code... name$="Jack" startCharPos%=2 howManyChars%=2 PRINT MID$(name$,startCharPos%,howManyChars%) ...output... ac EXPLANATION The MID$() function allows you to select characters from out of a string. In the above case the string is,... name$="Jack" ...where... J= string position 1 a= string position 2 c= string position 3 k= string position 4 ...thus, if we select MID$(name$,2,2)... ...this code is actually saying...select from the name...the character which begins at position 2 = a/and, extract 2 characters going along from there... = ac.


What is the simularities of parameter and arguments?

Arguments are fields that are given to a method when it is called, while parameters are the name for the received variables. For example:public static void main(String[] args){int arg1 = 0;boolean arg2 = false;String arg3 = "Some string";function_a(arg1, arg2, arg3);// These variables are called arguments because they are being passed// to the function.}public static void function_a(int par1, boolean par2, String par3){// These variables are called parameters because they are being received// when the function is called.}I hope this helps.


How do you use bsearch function to search a name sorted in array of pointers to string?

solution of above question on (link moved to link section)

Related Questions

1 Write a function called hello that given a persons name as a string returns the string hello followed by the name?

Here’s a simple Python function called hello that takes a person's name as a string and returns the greeting: def hello(name): return f"hello {name}" When you call hello("Alice"), it will return the string "hello Alice".


How are the strings passed to a function?

By reference. The name of the string is converted to a pointer (in C/C++) and given to the function as the address of the first element. (In Java, all objects are passed by reference, and there are no pointers.)


What is the name given to the highest sounding string instrument?

The violin is the highest pitched string instrument.


What is the name given to a 4 string guitar?

A bass guitar.


How do you take substring from a given string in php?

Use the substr function. For example <?php $name= "naruto uzumaki"; echo substr($name, 0, 6) ; // The first six char are taken by this code ?> This will output naruto


Why do the people of Umuofia call a snake a string and not a snake at night?

They do not call a snake by name because they are afraid it will hear it's name and respond.


How do you concatenate a string?

v can concatenate two string by using a function like: select CONCAT( CONCAT('ename','e_mrks'),"name","marks" from student;


How do you use MID function in qbasic?

...QBASIC program code... name$="Jack" startCharPos%=2 howManyChars%=2 PRINT MID$(name$,startCharPos%,howManyChars%) ...output... ac EXPLANATION The MID$() function allows you to select characters from out of a string. In the above case the string is,... name$="Jack" ...where... J= string position 1 a= string position 2 c= string position 3 k= string position 4 ...thus, if we select MID$(name$,2,2)... ...this code is actually saying...select from the name...the character which begins at position 2 = a/and, extract 2 characters going along from there... = ac.


What name is given to the shape of a quadratic function?

A parabola


What is the difference between call by name and call by value in programming languages?

In programming languages, call by value passes the value of a variable to a function, while call by name passes the name of the variable. Call by value evaluates the value before passing it, while call by name evaluates the value when it is used in the function.


What is the difference between call by value and call by name in programming languages?

In call by value, the value of the argument is passed to the function, while in call by name, the expression for the argument is passed and evaluated each time it is used in the function.


What is the function of an atlas?

An atlas is the name given to a book of maps.