![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions Q1. write a program to find a given number is armstrong number or not ?Q2write a program which accepts a filename as a command line argument and reverse the contents of the file(i.e first character becomes the last character of the file and so on ?Q3 how can i call a function given its name as a string ?Q4 How to swap low-order byte and high order byte in an integer without using temporary variable?Q5 If we develop a project in C, then how can we create an .exe file of it?Q6 how to print 1 to 100 please let me know the answers to my email address as i having the interview in TCS so please please please please let me know Read Answers (12) | Asked by : M.srilatha Latest Answer : #include#includevoid main(){ int a,i;clrscr();printf( " enter the number");scanf("%d",&a);for(i=a;i We have a 2 arrays e.g. arr1[]={2,3,4,4,5,6,7} , arr2[]={1,2,2,4,6,8,8} . Assuming that both the arrays are sorted , if we want to write a program to find common numbers present in both arrays , how do we do that ? Note that nested for loop has a complexity of n2 , hence avoid nested for loop. Latest Answer : Here is the code for finding the size of data types without using sizeof() #include#define size_of(data) ( (char *)(&data +1) - (char *)(&data))int main(){ int INT; char CHAR; ... How to find binary equivalent of a float number 5.375? 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 Latest Answer : 1.The answer is:24223 ... How to find the least two numbers in a single dimension array in a single pass (traversing the elements only once) Latest Answer : It is very simple man. Just do like taht.#define LEAST_COMPARE(index, least) list[index] < list[least]for (index = 0;index < 10;index++){ if (LEAST_COMPARE(index,least)) { ... How to find the ASCII value of an element ? Latest Answer : try this code:#include#includemain(){ char a; clrscr(); puts("Enter a character:"); a=getchar(); printf("nnThe ascii ... How to find the address of a variable which is declared as long double? Latest Answer : You can use the sizeof() operator to get the size of a variable declared as long double. try the following code:#include#includemain(){ long double a; clrscr(); printf("%d", ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||