Computer Science, asked by tabrejahmad3271, 1 year ago

Write a program to find the length of the string using a well defined library functions

Answers

Answered by Cheemaking
1

Explanation:

C program to find the length of a string using library function

Find Length of String Using Library Function

int main() {

char str[100];

int len;

printf("\nEnter the String : ");

gets(str);

len = strlen(str);

printf("\nLength of Given String : %d", len);

return(0);

Answered by Anonymous
0

Explanation:

✪Hey There✪

Here is your program

SET VERIFY OFF;

DELETE FROM top_salaries;

DEFINE p_num = 5

DECLARE

num NUMBER(3) := &p_num;

sal employees.salary%TYPE;

CURSOR emp_cursor IS

SELECT distinct salary

FROM employees

ORDER BY salary DESC;

BEGIN

OPEN emp_cursor;

FETCH emp_cursor INTO sal;

WHILE emp_cursor%ROWCOUNT <= num AND emp_cursor%FOUND

LOOP

INSERT INTO top_salaries (salary)

VALUES (sal);

FETCH emp_cursor INTO sal;

END LOOP;

CLOSE emp_cursor;

END;/

SELECT * FROM top_salaries;

Hope It Helps.☺️

Similar questions