2 votes 2 votes In c,octal number have regular expression A.0(digit)* B.0(digit)+ C.0(digit) D.0 Programming in C regular-expression + – Sourabh Kumar asked May 19, 2016 Sourabh Kumar 737 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
3 votes 3 votes 0(digit)* octal number regular expression ManojK answered May 19, 2016 ManojK comment Share Follow See all 9 Comments See all 9 9 Comments reply Sourabh Kumar commented May 19, 2016 reply Follow Share but in turbo c if I write only 0 it consider as integer not octal no. 0 votes 0 votes ManojK commented May 19, 2016 reply Follow Share int c=0110; printf("%d", c); use this n get output ?? 0 votes 0 votes Arjun commented May 19, 2016 reply Follow Share http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf Page 62. What is Turbo C? 0 votes 0 votes Sourabh Kumar commented May 20, 2016 reply Follow Share turbo c is compiler which i am using to run the program. when i write only zero then the colour is same as integer define in 4th line.whereas in 1st and 3rd line is octal number compiler shows it to black colour. 0 votes 0 votes Arjun commented May 22, 2016 reply Follow Share Why do you live in 20th century while it is 21st century? Just google "why I should not use Turbo C". 1 votes 1 votes Sourabh Kumar commented May 22, 2016 reply Follow Share arjun sir, I familiar with turboc that's why I worked on that.but forget about turboc, It is another matter, 0 has decimal value 0.and 0 has also octal value 0. 0 votes 0 votes Arjun commented May 23, 2016 reply Follow Share You are using something which was outdated even before Google was born. Had our college used this, I'm sure I won't be answering this question here. You can use any standard C compiler- but Turbo C is not one. As per C grammar 0 is octal constant as given in C standard. This is relevant only for grammar purpose as 0 is same for both octal and decimal representation. What a '0' prefix to a number does is to tell the C compiler to consider the number as octal -- won't make a difference for 0. Turbo C is something which deserves a ban in India. Just google and see how people abroad make fun of Indians for using this and asking stupid questions in C. They do have a point here. 0 votes 0 votes Arjun commented May 23, 2016 reply Follow Share https://www.quora.com/Why-is-Turbo-C++-still-being-used-in-Indian-Schools-and-Colleges https://www.quora.com/Why-should-we-not-use-Turbo-C++ https://www.quora.com/Why-universities-in-India-Still-use-turboC-instead-of-gcc Hope you get the answer.. 1 votes 1 votes Sourabh Kumar commented May 24, 2016 reply Follow Share thanx arjun sir 0 votes 0 votes Please log in or register to add a comment.