Give me basis knowledge of c , c++...
Answers were Sorted based on User's Feedback
Answer / sri
in C structures are used...but in cpp classes are
used..which is more secured
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / nirmal kumar tailor
c is a procedural language and C++ is object oriented
language
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / raji
c having no security for data..but c++ having that
security,using class(access specifier).
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / raji
c uses the top-down approach.c++ uses bottom-up approach
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / sri
C has no pointers and multiple inheritance but c++ have a point results and support multiple inheritance
| Is This Answer Correct ? | 0 Yes | 0 No |
what is bitwise operator?
Write an implementation of “float stringToFloat(char *str).” The code should be simple, and not require more than the basic operators (if, for, math operators, etc.). • Assumptions • Don’t worry about overflow or underflow • Stop at the 1st invalid character and return the number you have converted till then, if the 1st character is invalid return 0 • Don’t worry about exponential (e.g. 1e10), instead you should treat ‘e’ as an invalid character • Write it like real code, e.g. do error checking • Go though the string only once • Examples • “1.23” should return 1.23 • “1a” should return 1 • “a”should return 0
Why can arithmetic operations not be performed on void pointers?
wats the diference btwen constant pointer and pointer to a constant.pls give examples.
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
Explain command-line arguments in C.
declare afunction pointer to int printf(char *)?
Please provide question papers of NATIONAL INFORMATICS CENTRE for Scientific officer
Explain a file operation in C with an example.
Can we assign string to char pointer?
write a program to find the frequency of a number
what is ram?