473,382 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

array of string

I want to initialize an array of string as zero in C.How can I do it?
Feb 23 '12 #1
1 890
Banfa
9,065 Expert Mod 8TB
What do you mean because a string can't be zero(0) only an integer type can be 0 or floating point if you include 0.0.

How do you propose to declare your array? What do you propose to initialise it to?
Feb 23 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Techie Guy | last post by:
I'm trying to process a tab delimited file where each line in the file has around 12 tab delimited elements. My problem is the elements are surrounded by "quotes" and I need the script to remove...
3
by: Sam Clark | last post by:
The following code puts a structure location in an array field: XrefArray(i) = "ArrayIn(i).Field" & RefText.Substring(NumStart + 1) --------------------------------------------------------...
1
by: Sam Clark | last post by:
The following code puts a structure location in an array field: XrefArray(i) = "ArrayIn(i).Field" & RefText.Substring(NumStart + 1) --------------------------------------------------------...
3
by: marfi95 | last post by:
Hi all. I need to copy a byte array into a string, but starting at a specific location in the byte array. This is where I get hung up. For example if my byte array is (100) big, I might want to...
14
by: Peter Hallett | last post by:
I would like to set up a string array as a class member, or field, and then populate this array by reading in from a text file, but I cannot find the appropriate syntax. The getter and setter are...
1
by: spud379 | last post by:
i am doing an assignment in vb.net. i have to select at random from and array what i have is dim country(29) as string dim random as new random txtcountry.text = random.next(country) I...
4
by: =?Utf-8?B?aXdkdTE1?= | last post by:
hi, im having a small issue. I pass a String object to a method, but then when i try to use the Split method of a String array, it says System.Array does not contain Split. The parameter of my...
4
by: Mokita | last post by:
Hello, I am working with Taverna to build a workflow. Taverna has a beanshell where I can program in java. I am having some problems in writing a script, where I want to eliminate the duplicates...
1
by: Piero | last post by:
Hi, i must create an string array to save a record of a txt file.... the number of record is't the same... someone can help me? thanks
1
by: anup joshi | last post by:
HI TO ALL....... This Problem Is Occour To Me When Passing Pointer Array To The Function....... So plse Give Me Answer.........
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.