3241 |
#include <stdio.h> main( ) { char s[]=”abcdefg”; char *p; p=s; printf(“ch=%c\n”, |
30 |
2024-07-14 |
3242 |
# include < stdio .h > main ( ) { int x[ ] = {10, 20, 30, 40, 50 }; int *p |
64 |
2024-07-14 |
3243 |
#include <stdio.h> int max(int x, int y); main() { int a,b,c; a=7;b=8; |
75 |
2024-07-14 |
3244 |
#include <stdio.h> unsigned fun6(unsigned num) { unsigned k=1; do { k*=num%10; num/= |
47 |
2024-07-14 |
3245 |
#include <stdio.h> int fac(int n) { int f=1,i; for(i=1;i<=n;i++) f=f * i; return(f) |
79 |
2024-07-14 |
3246 |
#include <stdio.h> nt fun(int a, int b) { if(a>b) return(a); else return(b); } ma |
78 |
2024-07-14 |
3247 |
#include <stdio.h> int m=4; int func(int x,int y) { int m=1; return(x*y-m); } mai |
79 |
2024-07-14 |
3248 |
#include<stdio.h> func(int x) { x=10; printf(“%d, ”,x); } main( ) { int x=20; |
95 |
2024-07-14 |
3249 |
#include <stdio.h> int min( int x, int y ) { int m; if ( x> y ) m = x; e |
67 |
2024-07-14 |
3250 |
#include <stdio.h> int Sub(int a, int b) {return (a- b);} main() {int x, y, |
32 |
2024-07-14 |
3251 |
#include"stdio.h" main() {int j,k; static int x[4][4],y[4][4]; for(j=0;j<4;j++) fo |
74 |
2024-07-11 |
3252 |
#include <stdio.h> f(int b[],int n) {int i,r; r=1; for (i=0;i<=n;i++) r=r*b |
83 |
2024-07-11 |
3253 |
#include <stdio.h> main() {int a[2][3]={{1,2,3},{4,5,6}}; int b[3][2],i,j; for(i=0;i<=1 |
45 |
2024-07-11 |
3254 |
#include <stdio.h> main() {float fun(float x[]); float ave,a[3]={4.5,2,4}; ave=fun(a); |
34 |
2024-07-11 |
3255 |
#include “stdio.h” func(int b[ ]) { int j; for(j=0;j<4;j++) b[j]=j; } |
76 |
2024-07-11 |
3256 |
#include <stdio.h> main( ) { int i, f[10]; f[0]=f[1]=1; for(i=2;i<10;i++) f[i]=f[i-2] |
42 |
2024-07-11 |
3257 |
#include <stdio.h> main() { char diamond[][5]={{‘_’,’_’,’*’},{‘_‘,’*’,’_’, |
93 |
2024-07-11 |
3258 |
#include <stdio.h> main( ) { int n[3][3], i, j; for(i=0;i<3;i++ ) {for(j=0;j<3;j+ |
27 |
2024-07-11 |
3259 |
#include <stdio.h> main() { int i; int x[3][3]={1,2,3,4,5,6,7,8,9}; for (i=1; i<3; i+ |
69 |
2024-07-11 |
3260 |
#include <stdio.h> int m[3][3]={{1},{2},{3}}; int n[3][3]={1,2 ,3}; main( ) { printf( |
50 |
2024-07-11 |