main()
{
char p[] = "hello world!";
p = "vector";
printf("%s",p);
}
Answers were Sorted based on User's Feedback
Answer / amir khan
Vector because char a[] gives error due to empty parenthesis
| Is This Answer Correct ? | 4 Yes | 3 No |
What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }
What are the features of c language?
Write a program to swap two numbers without using third variable in c?
define switch statement?
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it?
Tell me what are bitwise shift operators?
#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]
how can i calculate mean,median,mode by using c program
Q. where is the below variables stored ? - volatile, static, register
Difference between Class and Struct.
13 Answers Ericsson, Motorola, Wipro,
Can we include one C program into another C program if yes how?