-
-
-
What is the output ?
Main(){printf("""ramabrahmam"");}
-
C Program for Combinations
Write a program to generate all combinations of 1,2 and 3 using for loop?
-
NCR function
Write a program in C which will print all the possible combination of a given word. E.G. if the word is ABCD then the output should be ABCD, ABDC, ACBD, ACDB, ADBC, ADCB, BACD, BADC, BCAD, BCDA, BDAC, BDCA, CABD, CADB, CBAD, CBDA, CDAB, CDBA, DABC, DACB, DBAC, DBCA, DCAB, DCBA,but the number of letters of the input must not be fixed i.e. the program should run well for any number of letters.
-
Function pointer
What is function pointer in C program?
-
C Structures
Is structure a value type or a reference type? why?
-
String Storing
How we can store more than 128chars in char-variable.
-
Based on type conversion
Main(){ printf("%d",(2.5*2.5));}above gives output of 0 plss explain
-
Recursive Function
1. Find output for following recursive function :int main(){int i=32242,j=find(i);}int find(int j){if(j){j = j%10 + find(j/10);printf(" %d ",j);}return j;}
2. What is the problem with following code : char* AddnewlinetoString(char *s){char buffer[1024];strcpy(buffer,s);buffer[strlen(s)-1] = 'n';return buffer;} -
Find ASCII value.
How to find the ASCII value of an element ?
-
C/C++ Error Codes
what are the different types of errors observed in C and classify them as compile time or run-time errors.
-
-
-
Do while() & while()
What is the minimum execution of do while() and while()?if there is a change why is it so?
-
-
Strip Comments
Write a program to read a file, strip the comments and write the output to another file.
-
Virtual Method
Base class has some virtual method and derived class has a method with the same name. if we initialize the base class pointer with derived object, calling of that virtual method will result in which method being called?
-
Header File
Why should we use header file?
-
Execute Shell Command
How will you execute shell command without using system command in C-language? Write a program to execute ls -l and redirect the output to a file, without using system command ?
C Interview Questions
Ans