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 is the difference between normal variables and pointer variables..............
15 Answers HP, Infosys, Satyam, Vivekanand Education Society,
What will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these
main() { FILE *fs; char c[10]; fs = fopen(“source.txt”, ”r”); /* source.txt exists and contains “Vector Institute” */ fseek(fs,0,SEEK_END); fseek(fs,-3L,SEEK_CUR); fgets(c,5,fs); puts(c); }
1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?
What are external variables in c?
Can include files be nested?
what is diff b/w huge & far & near pointer??
main difference between c and c++ language
What is the difference between abs() and fabs() functions?
#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); }
Why does notstrcat(string, "!");Work?
Can we replace the struct function in tree syntax with a union?