S

@Shobh89

70

C
1 year ago
#include <stdio.h> #include<stdlib.h> int main() { int *ptr; ptr=(int*)calloc(5,sizeof(int)); ptr[0]=1; ptr[1]=3; ptr[2]=5; ptr[3]=7;

69

C
1 year ago
#include <stdio.h> #include<stdlib.h> int main() { int *ptr; ptr=(int*) calloc(5,sizeof(int)); printf("enter numbers(5) : "); for(int i=0;i<5;i++) { scanf("%d",&ptr[i]);

68

C
1 year ago
#include <stdio.h> #include<stdlib.h> int main() { int *ptr; ptr=(int*) calloc(5,sizeof(int)); printf("enter numbers(5) : "); for(int i=0;i<5;i++) { scanf("%d",&ptr[i]);

67

C
1 year ago
#include <stdio.h> #include<stdlib.h> int main() { int *ptr; int n; printf(" enter n : "); scanf("%d", &n); ptr=(int *) calloc(n,sizeof(int));

QS.66

C
1 year ago
#include <stdio.h> #include<stdlib.h> int main() { int *ptr; int n; printf(" enter n : "); scanf("%d", &n); ptr=(int *) calloc(n,sizeof(int));

QS.65

C
1 year ago
#include <stdio.h> int main() { int *ptr; ptr=(float*) malloc(5 * sizeof(float)); ptr[0]=1; ptr[1]=3; ptr[2]=5; ptr[3]=7;

QS.64

C
1 year ago
#include <stdio.h> int main() { FILE *fptr; fptr=fopen("Sum.txt","r"); int a; fscanf(fptr,"%d",&a); int b; fscanf(fptr,"%d",&a);

QS.63

C
1 year ago
#include <stdio.h> int main() { FILE *fptr; fptr=fopen("Odd.txt","w"); int n; printf("enter n : "); scanf("%d",&n);

Qs.62

C
1 year ago
#include <stdio.h> int main() { FILE*fptr; fptr=fopen("Student.txt","w"); char name[100]; int age; float cgpa;

QS.61

C
1 year ago
#include <stdio.h> int main() { FILE *fptr; fptr=fopen("test.txt","r"); int n; fscanf(fptr,"%d",&n); printf("number=%d\n",n); fscanf(fptr,"%d",&n); printf("number=%d\n",n);

QS.59

C
1 year ago
#include <stdio.h> #include<string.h> typedef struct BankAccount{ int accountNo; char name[100]; }acc; int main() { acc acc1={123,"shobhit"};

qs.58

C
1 year ago
#include <stdio.h> #include<string.h> struct complex{ int real; int img; }; int main() { struct complex number1={5,8};

Qs.57

C
1 year ago
#include <stdio.h> #include<string.h> struct vector { int x; int y; }; void calcSum(struct vector v1,struct vector v2,struct vector sum); int main() {

QS.56

C
1 year ago
#include <stdio.h> #include <string.h> struct address{ int houseNo; int block; char city[100]; char state[100]; }; void printAdd(struct address add);

qs.55

C
1 year ago
#include <stdio.h> #include<string.h> //user defined struct student { int roll; float cgpa; char name[100]; };

8.d

C
1 year ago
#include <stdio.h> #include<string.h> int main() { char s[100]; int i; printf("\nEnter a string :"); gets(s); for(i=0; s[i]!='\0';i++){ if(s[i]>'a'&& s[i] <='z'){

8.c

C
1 year ago
#include <stdio.h> int main() { int i, len = 0,j; char str[] = "Remove white spaces"; //Calculating length of the array len = sizeof(str)/sizeof(str[0]); //Checks for space character in array if its there then ignores it and swap str[i] to str[i+1];

8.b

C
1 year ago
#include <stdio.h> #include <string.h> int main() { char str[100], result; int i, len; int max = 0; int freq[256] = {0}; printf("C Program to Find Maximum Occurring Character in a String \n");

8.a

C
1 year ago
#include <stdio.h> int main() { char string1[255];//Declaring a character array to store the sentence int i; printf("Input a sentence: "); gets(string1);// Input a sentence and store it in string1 printf("The original string :\n");

qs.54

C
1 year ago
#include<stdio.h> #include<string.h> void checkChar(char str[], char ch); int main() { char str[]="Shobnit"; char ch='o'; checkChar(str,ch); }