Answer:
Total amount paid → $3525
Explanation:
Articles unit rate Quantity Total amount
1). Banarasi sarees $1500 2 $3000
2). Shirting $30 8 $240
3). Bed sheets $40.50 2 $81
4). Cloth $20.25 8 $162
5). Handkerchiefs $3.50 12 $42
Total → $3525
Therefore, total amount paid to purchase the articles given is $3525.
Answer:
return value =2.
Here the function f() returns the length of the substring we traversed before we find the same character at the equal index of two substrings.
Take the inputs s= “abcd” and t= “bccd”.
• Now, p1 points to s1, i.e., p1 points to the character ‘a’ of “abcd”. And similarly, p2 points to ‘b’ of “bccd”.
• Then we compare the values at p1 and p2, are not equal, so p1 and p2 both are incremented by 1.
• Now the characters ‘b’ and ‘c’ of “abcd” and “bccd” respectively are compared. They are not equal. So both p1 and p2 both are incremented by 1.
• Now, p1 points to ‘c’ of “ abcd” that is the element at index 2 of s. And p2 points to ‘c’ of “bccd” that is the element at index 2 of t. Here value at p1 and p2 becomes equal. So the break statement is executed. We stop moving forward.
• As p1 is pointing to index 2 and s is pointing to the base that is index 0, so p1-s = 2.
Explanation:
#include<stdio.h>
int f(char *s, char *t);
void main()
{
int k = f("abcd", "bccd");
printf("%d", k);
}
int f(char *s, char *t)
{
char *p1, *p2;
for(p1 = s, p2 = t; *p1 != '\0'&& *p2 != '\0'; p1++, p2++)
{
if (*p1 ==*p2)
break;
}
return (p1-s);
}
OUPUT is given as image
Rows? Well in database every time you add data a new row is created automatically or (rarely) manually. They are added throughout functions like <em>addRow()</em> depending on programming language programmatically. The functionality to add db rows is enabled by drivers which are often present in the framework by default.
The answer is HTTP protocol
Answer:
A,B
Explanation:
It is A,B because therefore it is true A,B if attribute A determines both attribute B and C, A,B if attribute A and B determine attribute C, A,B is a composite determinant.