Give the rules for variable declaration?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

please give me some tips for the selection in TCS.

3 Answers   TCS,


How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.

12 Answers   NetApp,


Just came across this question, felt worth sharing, so here it is I want you to make a C/C++ program that for any positive integer n will print all the positive integers from 1 up to it and then back again! Let's say n=5 I want the program to print: 1 2 3 4 5 4 3 2 1. Too easy you say? Okay then... You can ONLY USE: 1 for loop 1 printf/cout statement 2 integers( i and n) and as many operations you want. NO if statements, NO ternary operators, NO tables, NO pointers, NO functions!

1 Answers  


write a own function to compare two strings with out using stringcomparition function?

6 Answers   LG Soft, Sasken,


Is c easy to learn?

0 Answers  


write a c program in such a way that if we enter the today date the output should be next day's date.

0 Answers  


how to find out the union of two character arrays?

2 Answers  


write an algorithm which can find the largest number among the given list using binary search ............... this was asked in the interview

2 Answers   Satyam, UNIS, Wipro,


program to find the roots of a quardratic equation

1 Answers  


Explain the difference between malloc() and calloc() function?

0 Answers  


WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW IT COME .. #include<stdio.h> #include<conio.h> void main() { int k=20; printf("%d%d%d%d",k,k++,++k,k); getch(); }

25 Answers  


What are # preprocessor operator in c?

0 Answers  


Categories