-
Write function vowels to count the vowels and letters
Write function vowels to count the vowels and letters in free text given as string. Then print out the number of occurrences of each of the vowels a, e, i, o and u in the string, the total number of letters, and each of the vowels as an integer percentage of the letter total.
Suggested output format is:
Numbers of characters:
a 3 ; e 2 ; i 0 ; o 1 ; u 0 ; rest 17 -
Write your own function stringSize which takes a string s as a parameter and returns its length.
Example:
stringSize(“hello”) returns 5 -
-
Tiny, large, huge memory models
I need the above said memory types explanation.
Please tell me any one. -
What is the output of this C Code?
c#include
void main()
{
printf(5+"fascimile");
}
-
Getch function declaration
Can you please explain the declaration of getch() function that is "int getch(void)"?
I have the doubt that if its return type is int, why is the character typed from the keyboard is displayed as it is? It should be displayed in its ASCII value. Also, what does void as parameter in this function stand for???
-
Enter key carriage return or linefeed?
When we press enter to end the program and press Alt+F5 to see the output again, we see that the getche() function places the cursor at the beginning of the line. So, does the enter key specify carriage return in this case. But while entering output, it works as a newline character... Please explain the difference in both the contexts.
-
Write a program to accept 20 numbers from the user
And count how many positive and how many negative and 0 numbers were entered!!
pls -
Accept an amount in rupees (indian currency ) from the user...
....and find the minimum number of notes to form that amount.
The denominations are 500,100,50,20,10,5,2,1 Rupee.
using any loop!! -
What will be the code for>?
Write a program that prompts the user to enter an integer from 1 to 15 and displays
a pyramid . For example if the input integer is 6 ,the output is shown below :
1
2 1 2
3 2 1 2 3
4 3 2 1 2 3 4
5 4 3 2 1 2 3 4 5
6 5 4 3 2 1 2 3 4 5 6Find the errors in the following program:
c# include
int main()
{
printf("Learning C is not
a difficult task");
return();
}If a,b,c are int variables and a=2, b=4,c=3,d=5, what is the value of the expression
a/b/c*d-a+c*d/b-c. Justify your answer
Language
What is the difference b/w c & java?
How to write a program for fibonacci series using perl?
Can someone help me in writing program for fibonacci series using perl..
C program 1-D array
Write a function to count how many students get marks higher than the average and how many students get marks lower than average mark out of n number of students.
How to print the over flow of fibonacci series
How to print the over flow of fibonacci series using unsined int upto 100 numbers
What is the difference in C and Java ?
Why the c use only compiler ? while java used both interpreter as well as compiler ?
Print value of I in C
Print value of i ?
c#include
#include
void main()
{
int i=1*4/3-27%3^2+100*0.5(4>3?1:2);
clrscr();
printf(“%d”, i);
getch();
}
Which order the functions would be called?
In the following code, in which order the functions would be called?
a= f1(23,14)*f2(12/4)+f3();What is statement and branch coverage for this program?
c#include
main()
{
call add();
int NO1,NO2NO3
}
void add()
{
scanf("%d",&NO1);
scanf("%d",&NO2);
NO3=sum(NO1,NO2);
printf("%d",NO3);
}
void sum(int x,int y)
{
return(x+y);
}
Ans