[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Program Discussion :: Basics

Home > Programs > Basics

339 / 279

Write a C program to find the sum of N prime number using Command Line Arguments?

Answer:

#include 

int main(int argc, int *argv[])
{
   int n,i=1,j=2,k=2,fact=1,sum=0;
   n=atoi(argv[1]);
   while(i

Asked In :: TCS

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here: