exam today please help
please don't spam....
please help
Answers
Explanation:
answers :
a) A function prototype is a function declaration that specifies the data types of its arguments in the parameter list. The compiler uses the information in a function prototype to ensure that the corresponding function definition and all corresponding function declarations and calls within the scope of the prototype contain the correct number of arguments or parameters, and that each argument or parameter is of the correct data type.
Prototypes are syntactically distinguished from the old style of function declaration. The two styles can be mixed for any single function, but this is not recommended. The following is a comparison of the old and the prototype styles of declaration:
Old style:
Functions can be declared implicitly by their appearance in a call.
Arguments to functions undergo the default conversions before the call.
The number and type of arguments are not checked.
b)The Java String charAt(int index) method returns the character at the specified index in a string. The index value that we pass in this method should be between 0 and (length of string-1). For example: s.charAt(0) would return the first character of the string represented by instance s. Java String charAt method throws IndexOutOfBoundsException, if the index value passed in the charAt() method is less than zero or greater than or equal to the length of the string (index<0|| index>=length()).
Java String charAt() Method example
Lets take an example to understand the use of charAt() method. In this example we have a string and we are printing the 1st, 6th, 12th and 21st character of the string using charAt() method.
Answer:
Explanation:
The education learning app, Brainly, focuses on
becoming a reliable source for students who are
stuck while doing homework. Now you might
be wondering in this inspired world why
would one rely on an e-learning app.
There is a lot of scattered information available
on searches, but a filtered and specific
questionnaire is where the app found its
opportunity. Here's where Brainly curated
feature, having specific questions that students
might come across in their homework. This
helps students to accurately understand and
complete their learning on time.
Through the Brainly app, the students can also
ask questions and obtain similar other results
related to the query. From this search result, a
student finds what others are asking or may find
some other questions which they are probably
not aware of.