write a C and C++ programme to implement the
A,bubble sort
B,quick sort
C,insertion sort
D,sequential search
E,binary search
What are the advantages of using new operator as compared to the function malloc ()?
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } what will happen if you executed this code?
Explain what is the heap?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }
11 Answers HCL, Vector, Vector India, Vector Solutions, Wipro,
m=++i&&++j(||)k++ printf("%d"i,j,k,m)
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
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
How to print %d in output
What is the use of getch ()?
What is a structure member in c?
? ???Mirror Mirror on the wall????????