Organizational Research By

Surprising Reserch Topic

char s100 i 2 bottonbottle it doesnt work why


char s100 i 2 bottonbottle it doesnt work why  using -'c'

why doesnt work?

#include <stdio.h>
int main()
{
    int i = 2;
    char s[100] = (i == 2)? "botton":"bottle";
    printf ("%c", s[0]);
    return 0;
}


[Error] invalid initializer
    
asked Sep 9, 2015 by Wil1227
0 votes
4 views



Related Hot Questions



Government Jobs Opening


...