Show the exact screen-output of each of the following programs
#include<stdio.h>
void rev( ) //function
{
char ch;
scanf("%c", &ch); //reads what you entered in main
if (ch <...
Type: Posts; User: jack999
Show the exact screen-output of each of the following programs
#include<stdio.h>
void rev( ) //function
{
char ch;
scanf("%c", &ch); //reads what you entered in main
if (ch <...
1. f(6) = f(5) + f(4)
2. f(5) = f(4) + f(3)
3. f(4) = f(3) + f(2)
4. f(3) = f(2) + f(1)
5. f(2) = 3
6. f(1) = 1
i got it
thanks ;)
f(6) =
f(5) + f(4) =
f(4) + f(3) + f(3) + f(2) =
f(3) + f(2) + f(2) + f(1) + f(2) + f(1) + 3 =
f(2) + f(1) + 3 + 3 + 1 ...
Show the exact screen-output of each of the following programs:
c)
#include <stdio.h>
int f (int a)
{
if (a== 1)
return 1;
thank u
Salem
i think i wont be able to submet it to the prof.
guys i really got confused when u tryed yo solve iy with functions
#include<stdio.h>
void read(float arr[],int n)
{
int i ;
for (i=0 ; i<n ; ++i)
{
yes i correct it and it worked
thanks
i solved it but the problem is that the first element of new array is always 0
#include<stdio.h>
main( )
{
int i,n,j ;
float arr[5], arr_new[5] ;
int temp;
in question he says (The swap operation should be done on one array)
if i used
for(int i = 0; i < N; i++)
i_new_array[i] = i_old_array[N-i]
i didnt undestand`anything :D
SlyMaelstrom
i didnot get it
can u explain more
Write a C-Program that swaps the elements of 1-D array (10 elements) :
Example:
If the given array is:
5 8 9 2 3 1 11 17 43 6
The new array will be:
6 43 17 11 1 3 2 9 8 5
Your program should...
it worked
thanks Dave_Sinkula
and thanks guys for correction
in 'for' loop, I don't believe that 'num' get set to EOF
because when i run the progrmme it doesnot stop
there is a problm in this programme
but i dont know what is it
question
Write a C-Program that does the following
• Read integer numbers from a file inp.dat
• Calculate the sum, average, and...