Hi, I m facing some trouble in c++?
I want to know how to write equivalent c++ statement from these c codes
struct stat sb; // this is struct, will be same in c++
printf("I-NODE NUMBER: %ld\n", (long) sb.st_ino); // this is C statement
// c++ statement of above statement
cout<<" Inode number: "<< (long) sb.st_ino; // is this the correct way?
// or this one
cout<<" Inode number: "<< (long) (long) sb.st_ino; // is this the correct way?