![]() |
| 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 (11) | Asked by : M.srilatha Q1 How to swap Low-order byte and high order byte in an integer without using temporary variable ?Q2 Q1 How to swap Low-order byte and high order byte in an integer without using temporary variable ?Q2 write a program to print numbers from 1 to 100 without using any condition checking ?Q3 If we develop a project in C,then how can we create an .exe file of it?Q4 Write a program which accepts a filename as a command like argument and reverse the contents of the file (i.e firs character becomesthe last character of the file and so on)input: the program takes the file name whose content should be Read Answers (7) | Asked by : M.srilatha Char str[]="DOLLAR";Here , you have the base address of array i.e. str.By using only one pointer variable, you have to replace the occurrence of 'L' with '$$'. (after replacement, it should be DO$$$$AR)can any body suggest efficient method? Read Answers (2) | Asked by : pavan kumar reddy Tags : Pointer Should the code below keep grabbing more resources as a variable is declared inside a while loop?while(1){int i = 10;while(--i);}How does a while loop exactly work? can any explain me the same? Latest Answer : #include#includevoid main(){ int a,i;clrscr();printf( " enter the number");scanf("%d",&a);for(i=a;i Given specification: if (x >2) then print 2*x; else print 2+x, where x is an integer variable. From the perspective of blackbox testing, discuss whether the following implementation is faulty if (x>=2) print (2*x) ;else print (2+x); View Question | Asked by : northwest How a variable value is stored and retrieved at runtime in C?for example main(){ int a; a=5; }Where is the value of 'a' stored and How it is retrieved at runtime? main{int x=90;float *ptr;ptr=(float *)&x;*ptr=50.0;printf("%d",x);printf("%f",*pf);}Though the address of i & pf are same but the value which i get when i print x is a different integer Latest Answer : It is always helpful to write valid code. Your example would not compile and the output would not be readable.1: int x = 90;2: float* ptr;3: ptr = (float*)&x;4: *ptr = 50.0f; ... Read Answers (1) | Asked by : chitraj 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; ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||