Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about char-pointer

Read more about char-pointer

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - char-pointer

Pointer printing first char of string

#include <iostream> using namespace std; char* input(char **S); int main() { char **S = new char *; char *K = input(S); //cout << K << endl; cout << *K <&l...
test-img

Ron

c++

pointers

char-pointer

Votes: 0

Answers: 1

Latest Answer

Let's understand how arrays work: // Let's say I have one character array char arr[] = {'a', 'b', 'c', 'd'}; In here, the name of the array i.e. arr acts as the pointer to the first element of the ar...
test-img

Vaibhav

When I write my own strchr function, there is a part in the return step that I don&#39;t understand

I'm trying to write my own strchr function for school, but there is something I don't understand. char *ft_strchr(const char *s, int c) { size_t i; size_t len; i = -1; len = ft_s...
test-img

user13101974

c

return

void-pointers

char-pointer

Votes: 0

Answers: 1

Latest Answer

That line is overcomplicating things and not really best possible solution. Let's take a closer look: char *ft_strchr(const char *s, int c) { ... return (((void *)&((char *)s)[i])); ... } F...
test-img

Gerhardh

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved