Skip to Main Content
VB.Net Web Developer's Guide
book

VB.Net Web Developer's Guide

by Syngress
September 2001
Intermediate to advanced content levelIntermediate to advanced
608 pages
23h 46m
English
Syngress
Content preview from VB.Net Web Developer's Guide
160 Chapter 4 • Common Language Runtime
error or not. However, let’s look at the following C code that attempts a similar
operation:
int i = 1;
char s[5] = "Hello";
printf("%d", i + s);
Running this code will not raise an error at all. It outputs a large number and
continues on without a glitch.This is because C handles strings differently than
Visual Basic does. C really has no concept of the string data type, and it imple-
ments them as character arrays. Because arrays are treated as pointers in C, it
simply adds the integer value 1 to the number value of the array’s location in
memory (you can show this by outputting the value of &s as well).These two ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

VB.NET Core Classes in a Nutshell

VB.NET Core Classes in a Nutshell

Budi Kurniawan, Ted Neward

Publisher Resources

ISBN: 9781928994480