c program example function prototype
c program example function prototype What would be the output of the following programs: main( ) { float area ; int radius = 1 ; area = circle ( radius ) ; printf ( “\n%f”, area ) ; } circle ( int r )
c program example function prototype What would be the output of the following programs: main( ) { float area ; int radius = 1 ; area = circle ( radius ) ; printf ( “\n%f”, area ) ; } circle ( int r )
c program example of function and value pass to function c program example function and value pass to function 2 main( ) { int i = 45, c ; c = multiply ( i * 1000 ) ; printf ( “\n%d”, c ) ; } check ( int ch ) { if ( ch >= … Read more
c program example Passing values between functions c program example function and value pass to function 1 main( ) { int i = 45, c ; c = check ( i ) ; printf ( “\n%d”, c ) ; } check ( int ch ) { if ( ch >= 45 ) return ( … Read more
c program example function and value pass to function main( ) { printf ( “\nOnly stupids use C?” ) ; display( ) ; } display( ) { printf ( “\nFools too use C!” ) ; main( ) ; }
point out the error decision control structure in c
switch case program example output in c What would be the output of the following programs: main( ) { int k, j = 2 ; switch ( k = j + 1 ) { case 0 : printf ( “\nTailor”) ; case 1 : printf ( “\nTutor”) ; case 2 : printf ( “\nTramp”) … Read more
switch case what would be the output of the program main( ) { int k, j = 2 ; switch ( k = j + 1 ) { case 0 : printf ( “\nTailor”) ; case 1 : printf ( “\nTutor”) ; case 2 : printf ( “\nTramp”) ; default : printf ( “\nPure Simple … Read more
if else what would be the output of following program
C Program to print half pyramid using alphabets A B B C C C D D D D E E E E E Let’s see the program code #include <stdio.h> int main() { int i, j; char input, alphabet = ‘A’; printf(“Enter the uppercase character you want to print in last row: “); scanf(“%c”,&input); for(i=1; … Read more