use pointer to return values
Type: Posts; User: vikasvijayan
use pointer to return values
1.)Remove the semi colons placed after if().
2.)This program will execute only one time..so 1st you have to use a loop for repeated insertion and deletion.
3.)You have to use a Head Node that...
replace int marital as char marital[50]...instead of marital==1 use strcmp() function
i know the procedure for binary search tree...
can you give the general inserting procedure by using linkedlist?
can anyone post the function to insert elements into a binary tree?[not binary search tree]
make the function call as print()
what do you meant by this program?is it like this?
1+1
2 then you want to use 2 as your 1st operand for the 2nd time?
if that is the case,then this program will not generate the result
here the 2nd if that is,if(prime) is not part of the for loop.
#include<stdio.h>
int main()
{
int primes[4];
i wil give you a simple solution for this problem
void main()
{
int i,k=1;
while(k>0)
{
for(i=0;i<k;i++)
printf("1");
fgets() cannot be used here.the use of fgets is demonstrated below.Consider the following code segment
while(feof()!=Null)
{
fgets(array,25,filepointer);
printf("%s",array);
}
...
the order is as follows:
int number;
printf ("www.");
goto x;
z:
by using the single scanf(),you cannot terminate the pgm by inputting one zero...because the compiler will check the while() loop only after 2nd input is provided.you can proceed like this:
do ...
so ur multiplying two 1dimensional arrays.this is the function
for(i=0;i<3;i++)
{
mult[i]=0;
mult[i]=m1[i]*m2[i];
}
for(i=0;i<3;i++)
printf("%d",mult[i]);
u have done this program in cpp and saved it with extension ".c" . Two solutions exist:
1).save the program as pgname.cpp
2).
(i)use header file #include<stdio.h>
(ii)use printf() in place of...
this is a simple issue...pls post ur code
do
{
printf("\nPlease enter the amount of hours worked for the week:");
scanf("%f", &hours);
if(hours>40)
{
//do what u want to calculate..ur...
what u meant by this program? is it the factors of the number?