2961 |
#include<stdio.h> struct st { int x; int y; } a[2]={5, 7, 2, 9} ; main() { pr |
70 |
2024-07-14 |
2962 |
#include <stdio.h> char s[]=”ABCD”; main() { char *p; for(p=s;p<s+4;p++) printf(“%c |
68 |
2024-07-14 |
2963 |
#include<stdio.h> main( ) { static char a[ ]=”Program”, *ptr; for(ptr=a, ptr<a+7; pt |
64 |
2024-07-14 |
2964 |
#include <stdio.h> main( ) { int a[ ]={1, 2, 3, 4, 5, 6}; int x, y, *p; p |
100 |
2024-07-14 |
2965 |
#include<stdio.h> main() { int arr[ ]={30,25,20,15,10,5}, *p=arr; p++; printf(“%d\n”, |
79 |
2024-07-14 |
2966 |
#include<stdio.h> main ( ) { int a[]={1, 2, 3, 4, 5} ; int x, y, *p; p=a; x |
97 |
2024-07-14 |
2967 |
#include <stdio.h> main( ) { char s[]=”abcdefg”; char *p; p=s; printf(“ch=%c\n”, |
30 |
2024-07-14 |
2968 |
# include < stdio .h > main ( ) { int x[ ] = {10, 20, 30, 40, 50 }; int *p |
64 |
2024-07-14 |
2969 |
#include <stdio.h> int max(int x, int y); main() { int a,b,c; a=7;b=8; |
75 |
2024-07-14 |
2970 |
#include <stdio.h> unsigned fun6(unsigned num) { unsigned k=1; do { k*=num%10; num/= |
47 |
2024-07-14 |
2971 |
#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 |
2972 |
#include <stdio.h> nt fun(int a, int b) { if(a>b) return(a); else return(b); } ma |
78 |
2024-07-14 |
2973 |
#include <stdio.h> int m=4; int func(int x,int y) { int m=1; return(x*y-m); } mai |
79 |
2024-07-14 |
2974 |
#include<stdio.h> func(int x) { x=10; printf(“%d, ”,x); } main( ) { int x=20; |
95 |
2024-07-14 |
2975 |
#include <stdio.h> int min( int x, int y ) { int m; if ( x> y ) m = x; e |
67 |
2024-07-14 |
2976 |
#include <stdio.h> int Sub(int a, int b) {return (a- b);} main() {int x, y, |
32 |
2024-07-14 |
2977 |
#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 |
2978 |
#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 |
2979 |
#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 |
2980 |
#include <stdio.h> main() {float fun(float x[]); float ave,a[3]={4.5,2,4}; ave=fun(a); |
34 |
2024-07-11 |