November 20th, 2012, 11:19 AM
Hi, I am unable to understand why is the output for this shows me the address of the stored array.
int main()
{
size_t k= 0 ;
char t[3][100] = { "hi", "di", "fi" } ;
char s[3][100] ;
for...
November 20th, 2012, 09:34 AM
The type of data is char. I thought when I initialize char d[] = "hi", the size is 3, meaning the compiler automatically adds a null character to the end
November 20th, 2012, 09:04 AM
The error is in the conditional statement of the second for loop. If I used the strnlen function, I dont get any trouble
November 20th, 2012, 08:30 AM
I thought that the 2nd statement is a conditional statement, meaning it does not assign value to c but just checks? am I correct?
November 20th, 2012, 08:05 AM
More info : my inner loop isnt executing. why?
November 20th, 2012, 07:58 AM
I am unable to check if the character in the 2D array isalpha
here is my code
#include<iostream>
#include<cctype>
#include<cassert>
#include<cstring>
const int maxChar = 20 ;
using...