Strings In Data Structures

  • This declares a string named name which can hold strings from length 0 to length 19.
  • All strings must end with a null character. When a string is enclosed in double quotes, i.e. “Hello there”, a null character is automatically inserted.
  • The double quotes mean “the string is whatever is inside the quotes followed by a null character.”
  1. char pet[5] = { ‘l’, ‘a’, ‘m’, ‘b’, ‘\0’ } ;




2nd Year CSE UnderGraduate

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Surrounded by Wolves and Web Sockets: A Survival Guide

Day47 |100 Days Of GADS

New Trailhead Badge Levels Up Learning with Flow Troubleshooting

Trailhead character, Codey the bear, pointing at the new Troubleshooting Flow badge.

Top 5 development courses on Udemy in 2017

The New Data Economy — Part 1/2

Scrum Master as Impediment Remover

Do developers of various programming community express natural language knowledge differently?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Megha Agarwal

Megha Agarwal

2nd Year CSE UnderGraduate

More from Medium

Exploring Number Theoretic Algorithms

Evaluation Techniques for Interactive System

Google One Tap

Love & variables