What is the main purpose of the Right To Play program?
The Right to Play program is a very well known humanitarian organization. The Right to Play program uses sports for young adults to help improve their health.
Is that any other way to input data in c language other than scanf function?
read, fread, gets, fgets, getc, fgetc, getchar, getch
Can a DateTime variable be null?
hi i can say that datetime cant be null because datetime is valuetyp(struct) its not referece type(object)
What are the languages from which C was evolved?
C got its name because it was a successor to the B programming language (to which it is very similar). The various iterations of ALGOL also had an influence on C.
Program in c to find speed when distance and time are accepted at run time?
#include<stdio.h>
@include<conio.h>
void main()
{
float s,p,d;
printf("enter distance and time");
scanf("%f",&d,&t);
s=d/t;
printf("result=%f",&s);
getch();
}
The position of Proof Operator I is responsible for operating proof machines to encode checks and over the counter items; assists in capture of balanced work and preparation of outgoing cash letters; performs routine clerical duties as directed.
guys ..... instead of using actual pointer arguments i have used parameters ...
this will give you a far better idea of using pointers ........and i have used setbuf function because i am using emacs , it buffers output !!...... just enjoy
#include<stdio.h>
#include<string.h>
void main()
{
char ch,str[25],del[25];
char *p,*q,*r;
int i;
setbuf(stdout,NULL);
printf("\nenter the string:-\n");
gets(str);
setbuf(stdout,NULL);
printf("\nenter the character:-\n");
gets(&ch);
p=str;
r=del;
q=&ch;
delete(p,q,r);
printf("\nthe string with the deleted characters is:-\n%s",del);
}
delete(char *p,char *q,char *r)
{
while(*p!='\0')
{
if(*p!=*q)
{
*r=*p;
r++;
p++;
}
else
{
p++;
continue;
}
}
*r='\0';
}
Are c programes required to be typed in lowercase?
It's not a requirement, but it is highly recommended. All C keywords are in lowercase as are all standard library names and types. Uppercase names are conventionally used to denote macros since a macro is not C code (macro expansion is handled by the preprocessor so the compiler never sees them). User-defined types are conventionally given a leading capital to differentiate them from the standard library types. Programmers are free to adopt their own style of coding, however sticking to the established conventions and best practices is good etiquette.
What is the meaning of Master-slave communication protocol?
A master-slave communication protocol allows hardware components to communicate between them.
A component is either a master or a slave.
A master initiates the communication and sends requests.
A slave only receives the requests, acknoledges, threats and sends a response. A slave cannot initiates a communication.
What is the difference between array linklist?
Linked list consists of data nodes each pointing to next in the list .An array consist of contiguous chunk memory of predetermined size
What is the process of assigning a value to a variable called?
That is called "assignment".
That is called "assignment".
That is called "assignment".
That is called "assignment".
Write a program to sort two numbers using pointers?
This program works only on Microsoft compiler, people who are using another compilers will have to modify pointer initialization to
double vfirstNumber = 0.0;
double* firstNumber = &vfirstVariable;
...
double vsecondNumber = 0.0;
double* secondNumber = &vsecondNumber;
Or whatever you find is better.
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main()
{
double* firstNumber = NULL;
cout << endl << "Enter first number: ";
cin >> *firstNumber;
double* secondNumber = NULL;
cout << endl << "Enter second number: ";
cin >> *secondNumber;
if (*firstNumber > *secondNumber)
{
cout << endl << *firstNumber << " > " << *secondNumber << endl;
}
else if (*firstNumber < *secondNumber)
{
cout << endl << *firstNumber << " < " << *secondNumber << endl;
}
else
{
cout << endl << *firstNumber << " = " << *secondNumber << endl;
}
system("PAUSE");
return 0;
}
Is the comment ignored by the compiler?
Usually, it is (there are special cases (not in C though), when compiler hints look like comments).
What are the applications of linked list?
1.Sparse matrix representation 2. polynomial manipulation 3.dyanamic memory storage 4.in symbol table
What is the definition of the Watchdog Function?
The watchdog function of Congress is designed to keep watch on the executive agencies
What is the function of the aortices?
I don't know the word "aortices". Perhaps it is a misspelling. Please restate your question.
How. to. write an. algorthim. to find the. sum of. first. 15 natural. numbers?
Write an. Algorthim. To. Find the. Sum. Of. First15 natural. Numbers
In ANSI C you can hide data by using private access specifier Justify?
One can always declare a datatype as static which will limit the scope to the file only. this way data hiding can be achived. For more clearance on the same please refer 'the C programming language'.
Data hiding means only relevant data is visible to the user and all the background information is hidden from the user. In c++, the variables are named as data members and these can be hidden with the help of private access specifier.
In procedural languages, variables(global variables) are free to flow from functions to functions and hence they were not secured. But in C++, only the class in which the data members are being declared can access them by using private specifier. As, the data members and also member functions of a class cannot be accessed outside the class if they have private access so, they get hidden from the user and hence the data hiding is achieved.
Also in inheritance when we derive a class from the base class then the derived class cannot access the private members of the base class. In addition, if a class is derived from another class privately i.e. for example syntax : class B : private A , is used then all the public and protected members (not private) becomes private to class B and cannot be accessed outside the class B, even by using the object of class B.
Hence, data hiding is achieved in C++ through private access specifier.
Remington model 24 what type bullet should be used in 22 short std or high velocity lead or?
The Model 24 was made in two configurations - one would shoot only 2 short (usually used for gallery rifles at arcades) and the other for 22 long rifle. If it is not marked on the side of the barrel (and it should be), take the gun apart and see if a 22 LR will slide completely into the chamber. If not, it is a 22 short.
What is and gm and and gd in c program?
gd is graphics driver specifies which graphics driver to be used..... gm is graphics mode sets highest resolution for detected driver
What are the main ways of exiting a program?
Other than throwing an exception or a run-time library error, or forcibly terminating the process, there is only one way of exiting a program; you return from the entry point function, usually main(), provided by the library, or from winmain(), if you are using Windows.