What does C in CCleaner stand for?
c= crap
i think they changed the name so that people would think the program is more proffeessoonnaall. i don't think "Crap-cleaner" sounds very professional, and might be a rouge .
Write a c program to print the given no is palindrome or not using for loop?
#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(s == n) // This is important step
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
Write a program in c to find out the middle character of a word?
This kind of exercise requires a minimal amount of mathematics and logic.
In C, strings are character arrays, and the variables used to contain strings actually contain the location (or "address") of the first character. The last character in the string is ASCII 0 (NUL), which signals the end of the string.
This problem requires you first know how long the string is, and for this purpose you would use "strlen". Assuming you have an integer variable called "length" and a string called "str", this assignment would store the length of "str" into "length": length=strlen(str);
From there, the middle character is located at the halfway point in the array. So, if you had an integer variable called "halfpos", then this assignment would place the middle position of the string in "halfpos": halfpos=length/2;
Note that strings with an even number of character (2, 4, 6, 8, 10, etc.) actually have two middle characters. So "halfpos" would actually contain one character less than what's considered the "middle" of the string. Examples of this are:
- "Grape" contains five characters, ranged 0 to 4, so "halfpos" is 2, or "a" - although 5/2 is 2.5, because "length" and "halfpos" are integers that .5 is stripped off.
- "Tomato" contains six characters, ranged 0 to 5, so "halfpos" would be the point between the "m" and the "a".
To write the code for this exercise, you will need to know more about arrays. See the related links below for more help.
The answer is too long to type on here
but you can get a solution on your TI-89
go to Math
7:Probability
1:!
then type in 120!
120!=66895029134491270575881180540903725867527463331380298102956713523016335..
=(roughly) 6.6895x10198
Who is author Henri J M Nouwen?
Henri was a Roman Catholic priest. He taught at Notre Dame, Yale, and Harvard. He wrote a great many books, probably the best known is "The Wounded Healer". He died about ten years ago of a heart attack in his native Holland.
What has the author Edwin N C Barnes written?
Edwin N. C. Barnes has written:
'Who's who in music education' -- subject(s): Instruction and study, Music
'The bard of Pittsburgh'
'Music as an educational and social asset (the instrumental contribution)' -- subject(s): Instruction and study, Music
Which accepts an integer array of size n and prints every third value of the array?
You can loop through the array, and print out every third element. If the index used for looping is called "i", you can test whether "i" is a multiple of three (i % 3 == 0).
Or, and perhaps more efficiently, you can increase the index 3 at a time, for example:
for (i = 0; i <= theArray.length, i+=3)
{
...
}
Which important property do stack algorithm have?
They will scratch and mess up. They will scratch and mess up. They will scratch and mess up. They will scratch and mess up. They will scratch and mess up. They will scratch and mess up.
C language is developed by Dennis Ritchie at Bell Laboratories in 1972. To know more about C Programming and learn C Programming from basics to advance visit codeforhunger. com
How do you get Dark GDK Visual Studio C plus plus projects?
GDK tutorial websites are probably your best bet.
From TechNet: Set the Same Initial and Maximum Size
Setting the paging file's initial size and maximum size to the same value increases efficiency because the operating system does not need to expand the file during processing. Setting different values for initial and maximum size can contribute to disk fragmentation.
Why is the hard drive labeled C?
C:/ c is the hard drive a brilliant question, as a computer tech, i always just accepted it as fact upon contemplation i would answer that it is a randomly chosen identifer for the local drive you would probably have had to be there when the engineer was configuring, for all intents and purposes, one of the first artificial intelligence prototypes and, well, "i'll name it C" you could probably get the correct answer from a archived computer book, documentary, etc you will never see "his" notes c (lower case) is the constant for the speed of light Note: This is a correct answer but somebody changed the question on you...It has been reverted back to the original. Answer 2: The earliest computers operating under the various DOS versions were not equipped with a hard drive. They operated, in some cases by running the operating system out of one floppy drive and using the second floppy for applications. The floppies were addressed as A and B. After hard drives began to be installed, it was still common for computers to have two floppies. After the old 5-1/4 floppy format gave way to the new 3-1/2, it was common to find both drives on computers because the user was assumed to have all their important stuff still on the old 5-1/4's. That created a bit of a problem because the A and B were so firmly entrenched in their use for addressing the floppy drives that it was impractical to use A or B for anything else. Also, software was written to default to the C-drive when programs were installed. C:\ does not always refer to a hard drive, it is used to address the first un-hidden DOS sector on an IDE or SATA device. As such, a hard drive may be partitioned to have many partitions and those partitions can be assigned letters of your choosing by using drive management programs. Networked computers can also map different letters to various network locations. Optical drives are generally going to take a higher letter if the system has a hard drive. The C-drive does not always have to refer to a hard drive. When a virtual drive is created in memory, as when you use Windows' recovery, it can be addressed as C. Linux, Unix and MacOS do not use any drive letters.
How do you write a C program to insert a sub-string into given main string from a given position?
#include
#include
void main( )
{
char st[20],sub[10],temp[10];
int pos, i, j;
clrscr( );
printf("Enter the main string:");
gets(st);
printf("\nEnter the substring to insert:");
gets(sub);
printf("Enter the index position:");
scanf("%d",&pos);
if(pos<=strlen(st)) {
for(i=0;i<=strlen(st);i++) {
if(i==pos)
{
for(j=0;st[i]!='\0';j++) // to store the 'st' to 'temp' from given position.
{
temp[j]=st[i];
i++;
}
temp[j]='\0';
i=pos;
for(j=0;sub[j]!='\0';j++) // to insert a sub-str to main string.
{
st[i]=sub[j];
i++;
}
for(j=0;temp[j]!='\0';j++) // Lastly to insert the 'temp' to 'st' after sub-str.
{
st[i]=temp[j];
i++;
}
st[i]='\0';
}}
printf("\nAfter adding the sub-string: %s",st);
}
else
printf("\nSorry, it is not possible to insert a substring in that position.");
getch();
}
How can you tell if a 1973 trans am is a SD 455 or just a 455?
Typically, if it is a super duty, you'll find "455SD" decals on the shaker scoop. If yours is a high output or standard engine, it will be badged as simply 4 5 5. If you're still unsure, the super duty utilised round port cylinder heads and an LS2 intake. It also included cast iron exhaust header-manifolds.
Design an algorithm to show the different operations on a stack?
Design an algorithm to show the different operations on a stack?
Write a program to check whether the number is divisible by 3 or not by using the?
I assume you mean is an if the number is an integer multiple of 3
i am unfamiliar with C but the theory would be,
find if a is integer multiple of 3
b=a/3
b==round(b).
if 1 "yes"
else "no"
this is an inefficiency way but will get the job done
What is the program that prints all prime numbers from 0 to 300 in C plus plus?
#include
bool is_prime(unsigned num)
{
// 2 is the first prime and the only even prime.
if (num < 2) return false;
if (num == 2) return true;
if (num % 2 == 0) return false;
// Divide num by every odd number from 3 up
// to and including the square root of num.
// If any division results in no remainder
// then num is not prime.
unsigned max = sqrt ((double) num) + 1;
unsigned div = 3;
do {
if (num % div == 0)
return false;
} while ((div += 2) < max);
// If we get this far, num is prime.
return true;
}
int main()
{
std::cout << "Prime numbers in the range 0 to 300:\n" << std::endl;
unsigned num = 0;
do {
if (is_prime (num))
std::cout << '\t' << num << std::endl;
} while( num++ < 300);
std::cout << std::endl;
}
Example Output
Prime numbers in the range 0 to 300:
2
5
7
11
13
17
19
23
29
31
37
41
43
47
53
59
61
67
71
73
79
83
89
97
101
103
107
109
113
127
131
137
139
149
151
157
163
167
173
179
181
191
193
197
199
211
223
227
229
233
239
241
251
257
263
269
271
277
281
283
293
What is array What is difference between array and simple variable?
An array stores several values - for example, several numbers - using a single variable name. The programmer can access the individual values with a subscript, for example, myArray[0], myArray[5]. The subscript can also be a variable, for example, myArray[i], making it easy to write a loop that processes all the elements of an array, or some of them, one after another.
What is one quadrillion calculations is referred to as?
A petaflop, if you mean floating point operations.
What is stdin stdout and stderr in c?
stdin is short for "standard input." When you input data into the terminal while the program is running, this is where it goes.stdout is short for "standard output." This is where all of the data that you print out of your program (via printf(), puts(), etc.) goes.
stderr is short for "standard error." This is where you should print your error messages to (via fprintf(), fputs(), etc.).
C prigram to create sales report using arrays?
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<math.h>
void main()
{
float amt,bal=0,min=500,cor;
char name[50];
int ch,ano;
clrscr();
printf("\nDetails of new account holder");
printf("\nEnter the Name:");
scanf("%s",name);
printf("\nEnter your account number maximum 4digit:");
scanf("%d",&ano);
printf("\n\tThank you %s.\n\tYour account is created t oour bank.",name);
printf("\nMinimun account balance Rs.500");
do
{
printf("\n\t1.Deposite\n\t2.Withdrawal\n\t3.Balance enqiury\n\t4.Exit" );
printf("\nEnter your chioce:");
scanf("%d",&ch);
switch(ch)
{
case 1:
printf("\nEnter the amount to deposite:");
scanf("%f",&amt);
bal=bal+amt;
printf("\nYour transaction is successful.amount debited your acount");
break;
case 2:
printf("\nEnter the amount to withdrawal:");
scanf("%f",&amt);
cor=bal-amt;
if(cor>=min)
{
printf("\nThe amount credited your account");
bal=bal-amt;
}
else
{
printf("\nThe Minimun balance is to low");
}
break;
case 3:
printf("\nYour Account balance is:%.2f",bal);
break;
case 4:
printf("\nThe transaction is close");
exit(0);
}
}while(ch<=4);
getch();
}
How would you program a C application to run in windows mode?
u must use textmode(ch80); works on 80 by 25 dimension.
or texmode(c40); works on 40 by 25 dimensions........ further info: bhopalcoolboy@gmail.com
write a program which reads names of students and their telephones from a file and produce a linked list ordered in alphabetical order by the surname of the student.