Is it possible to initialize a variable at the time it was declared?


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

Post New Answer

More C Interview Questions

Explain what is the difference between a string and an array?

0 Answers  


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  


printf("%d",(printf("Hello")); What it returns?

32 Answers   TCS,


What is the difference between malloc() and calloc()?

3 Answers  


What is data structure in c and its types?

0 Answers  


name the language for writing c compiler?

3 Answers   Microsoft,


what is difference between ANSI structure and C99 Structure?

1 Answers   Wipro,


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

0 Answers  


What is pointer & why it is used?

0 Answers  


What is #define?

0 Answers  


What is the most efficient way to store flag values?

0 Answers  


What is static and auto variables in c?

0 Answers  


Categories