| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Find string palindrome 10marks
| Honeywell | 5 |
| Is the C language is the portable language...If yes...Then
Why...and if not then what is problem so it is not a
Portable language..??? | TCS | 1 |
| write the function int countchtr(char string[],int
ch);which returns the number of timesthe character ch
appears in the string. for example the call countchtr("she
lives in Newyork",'e') would return 3. | | 4 |
| how to make c program without a libary?
e.g.#include<stdio.h> libary is not in c progaram. | | 1 |
| difference between memcpy and strcpy | | 1 |
| wap to print "hello world" without using the main function. | TCS | 16 |
| Determine if a number is a power of 2 at O(1). | | 1 |
| to find out the reverse digit of a given number | Infosys | 5 |
| Write a program in c to input a 5 digit number and print it
in words. | | 1 |
| Design a program using an array that searches a number if it
is found on the list of the given input numbers and locate
its exact location in the list. | | 3 |
| Give a method to count the number of ones in a 32 bit number? | | 1 |
| what will be the output:
main(){char ch;int a=10;printf("%d",ch);} | Wipro | 29 |
| what is the use of call back function in c?tell me with
example | | 1 |
| main()
{
int arr[5]={23,67};
printf("%d%d%d",arr[2],arr[3],arr[4]);
} | TCS | 6 |
| Reverse a string word by word?? | | 6 |
| main()
{int a=200*200/100;
printf("%d",a);
} | TCS | 7 |
| 5. distance conversion:
Convert a distance from miles to kilometers .there are 5280
feets per mile,12 inches per foot .2.54 centimeters per
inch and 100000centimeters per kilometer
| | 1 |
| how to find the kth smallest element in the given list of
array elemnts.
| Silicon | 5 |
| dibakar & vekatesh..uttejana here..abt ur reply for in
place reversal of linked list..wats p stands for there? | | 1 |
| #include<stdio.h>
main()
{
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
}
Tell me the output? | Ramco | 5 |
| |
| For more C Interview Questions Click Here |