Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 0.27 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why sizeof('c') is returning 4 instead of 1? [closed]
  2. int main(void)
  3. {
  4.         printf("%d %dn", sizeof('c'), sizeof(char));
  5.         return 0;
  6. }
  7.        
  8. printf("%dn", 'xy');
  9.        
  10. const int chunk = read_chunk_from_file(...);
  11. if(chunk == 'IHDR')
  12.   process_image_header(...);