Given an array A[n+m] of n+m numbers, where A[1] ... A[n] is
sorted and A[n+1] ... A[n+m] is
sorted. Design a linear time algorithm to obtain A[1...n+m]
sorted using only O(1) extra space.
Time Complexity of your algorithm should be O(n) and Space
Complexity O(1).
52.write a Hello World program in c without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2?
Write a program which has the following seven functions.
The functions should be:
main() this calls the other 6 functions
fget_long() a function which returns a long data
type from a file
fget_short() a function which returns a short
integer variable from a file
fget_float() a function which returns a floating
point variable from a file
fprt_long() a function which prints its single,
long argument into a file
fprt_short() a function which prints its single,
short argument into a file
fprt_float() a function which prints its single,
floating point argument into a file.
You should use fscanf() to get the values of the variables
from the input (the file) and fprintf() to print the values
to the other file. Pay attention to using the correct
format for each of the data types.
hi friends how r u as soon in satyam my interview is start
but i m very confusued ta wat i do plz help me frndz wat
can i do plz tell me some question and answers related
with "C" which r asked in the interview .
Given an array A[n+m] of n+m numbers, where A[1] ... A[n] is
sorted and A[n+1] ... A[n+m] is
sorted. Design a linear time algorithm to obtain A[1...n+m]
sorted using only O(1) extra space.
Time Complexity of your algorithm should be O(n) and Space
Complexity O(1).
84
How do we make a global variable accessible across files?
Explain the extern keyword?
2
What is the scope of static variables?
1
Define function pointers?
5
i have to apply for rbi before that i need to know the the
syllabus for the entrance questions. whethet it may be aps
or techinical
23
Is there any algorithm to search a string in link list in
the minimum time?(please do not suggest the usual method of
traversing the link list)
83
Write the following function in C.
stripos Find position of first occurrence of a case-
insensitive string
int stripos ( char* haystack, char* needle, int offset )
Returns the numeric position of the first occurrence of
needle in the
haystack string. Note that the needle may be a string of
one or more
characters. If needle is not found, stripos() will return -
1.
The function should not make use of any C library function
calls.