If I want to initialize the array like.
int a[5] = {0};
then it gives me all element 0.
but if i give int a[5] = {5};
then 5 0 0 0 0 is ans.
what will I do for all element 5 5 5 5 5 in a single
statement???
Answers were Sorted based on User's Feedback
What is an auto keyword in c?
Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }
Why is sizeof () an operator and not a function?
explain what are actual arguments?
Explain what is a 'locale'?
What are reserved words?
What is the Purpose of 'extern' keyword in a function declaration?
write a c program to print "Welcome" without using semicolon in the whole program ??
What is variables in c?
Given an unsigned integer, find if the number is power of 2?
WHAT IS MEANT BY LIFE?
#include <stdio.h> #define sqr(x) (x*x) int main() { int x=2; printf("value of x=%d",sqr(x+1)); } What is the value of x?
16 Answers Accel Frontline, Opera, Oracle,