character « index « C Array Q&A

Home
C Array Q&A
1.bit
2.Byte
3.char
4.class
5.Development
6.Dimensional Array
7.dynamic
8.element
9.find
10.index
11.initialization
12.Integer
13.length
14.loop
15.memory
16.Operation
17.pointer
18.Print
19.size
20.Sort Search
21.string
22.struct
23.variable
C Array Q&A » index » character 

1. How to access the first character of a character array?    stackoverflow.com

#include <stdio.h>

int main(void){
    char x [] = "hello world.";
    printf("%s \n", &x[0]);
    return 0;
}
The above code prints out "hello world." How would i ...

2. Global C array with wide characters as indexes    stackoverflow.com

when i use non-ascii character for defining global array, for example:

const char table[] = {[L'?'] = 'c', ...}; 
so C handles situation, where i change locale and then access array through ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.