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
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
Latest Answer : #include#includevoid main(){ int a,i;clrscr();printf( " enter the number");scanf("%d",&a);for(i=a;i
Latest Answer : Here is the code for palindrome with recursive mechanism#includeint rev=0; //Global Variableint REV(int num){if(num>0){ rev=(rev*10)+ (num %10); REV(num / 10); //calling the Function recursively. ...
Latest Answer : Pointers to functions concept is used in C programming language in various instances. One of the common instance in which programmers use pointers to function concept is for passing pointers to a function as the name implies.For example the below declares ...
Latest Answer : Function Declaration means telling the compiler what are the types of arguments that are passed toa function , what type of data type it will return. It is ended with a semicolon (;).Eg : int add(int , int);int add(int a, int b);Definition of a function ...
with the program
Latest Answer : void main(){ char s[10]; int i; scanf("%s",s); for(i=0;s[i]!='';i++); printf("The length of the given string",--i); getch();}thank you!!!!!!!!!!!! ...
In this x is the input and F(X) is the output,tab_func(sin, 0.0, PI, PI/8.0) is the method i have to use to get a output.Plz give me the relation b/w x and F(x).A function which will tabulate values of
What is function pointer in C program?
Latest Answer : Each pointer will point to a data type like integer, float etc., similar to these pointers we can also have some special pointers that point to the memory location of the functions and these pointers are named as function pointers ...