Walt Mankowski via plug on 20 Feb 2024 06:59:48 -0800
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Arduino Syntax Questions
|
- From: Walt Mankowski via plug <plug@lists.phillylinux.org>
- To: plug@lists.phillylinux.org
- Subject: Re: [PLUG] Arduino Syntax Questions
- Date: Tue, 20 Feb 2024 09:59:21 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id :mime-version:in-reply-to:references:date:from:to:subject :content-type; s=sasl; bh=x2/ftLiBVy5wzeZjj1Em9fOXLESnlm7PZs7SAO SMTP4=; b=X8WeJJgZq9UTQpvV3M6HZgH1i4PrTInsfQdw+uQRv4z6hHHmKE68Va RBtRYzUzJbx7tUZEtvR6q+YyWWrcf/HnNGxCpu1Xi+Fk7GlukGLhz0m+Y9p8KHX4 94mm8PIxp7Vva3dVXiBgi6jHPngCdjz343sjKw84yU3hHx+RS6OpQ=
- Feedback-id: i7af9444b:Fastmail
- Reply-to: Walt Mankowski <waltman@pobox.com>
- Sender: "plug" <plug-bounces@lists.phillylinux.org>
- User-agent: Cyrus-JMAP/3.11.0-alpha0-153-g7e3bb84806-fm-20240215.007-g7e3bb848
On Mon, Feb 19, 2024 at 10:09:44PM -0500, Will via plug wrote:
> Casey,
>
> This is basic C and C++ here.
>
> 1.) `->` is a operator to allow you to set a value from within a struct.
That's not correct. The -> operator is used to dereference pointers. The pointer can be to either a struct or a scalar value like an int or a char.
The operator to access values within a struct is .
(period). It can also be used to both get and set values.
Walt
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug