89 questions
int main(void){ int num = 0; int* a = NULL; printf(>Positive Input : ); scanf(%d, &num); a = (int*)malloc(num-2); search(a,num); for (int i = 0; i < num-2; i++) { if(a[i-2] == 0) printf(X )...
They created a two-dimensional array of chars, and they also created a pointer to it.I want the pointer to point to a[0][1], so I did (*pa)++ (I know pa is the pointer to a, *pa is the pointer to the ...
#include <stdio.h>int main() { char* astrList[3] = {Hello, World, String}; char* *ppstrList = astrList; char** *pppstrList = &ppstrList; puts(*pppstrList[0]); puts(pppstrList[2][0]); return ...
#include <stdio.h>#include <stdlib.h>char *Mystrrev(char *string) { char *NewStr = NULL; int count = 0; for (int i = 0; string[i] != '\0'; i++) count++; NewStr = (char*)calloc(count, sizeo...
What's the problem with the same error as the title?I'm going to watch it and follow it, but I don't know. #include <stdio.h>#include <stdlib.h>Typedef struct list {// The connection with ...
#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <stdlib.h>#include <string.h>#define INF 99999999//Implementing a Stack - Defining a Stacktypedef struct { char data[100]; s...
When searching in a linked list, you search by creating a ListNode *p variable as shown below.void print_list(ListNode *head){ for(ListNode *p = head ; p != NULL ; p = p->link) printf(%d->,p-&g...
Hi, everyone.I made a simple code. I'd like to hear advice from experts who know the problem.#include <iostream>using namespace std;int CountPlayer;struct SUTDA{ char Name[20];};void Input(){ co...
Hello, I'm a reserve who just got discharged from the military while preparing to return to school for the second semester of the second year of computer engineering.I was curious while looking at the...
#define _crt_secure_no_warnings#define size 5#include<stdio.h>void GetIntArray(int* v, int n);int Isinclude(int* v, int n, int val);int main(){ int v[size]; int n = 5; int val; printf(Enter val:...
« | - 8 - | » |
© 2024 OneMinuteCode. All rights reserved.