Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  c3
Language: C/C++
Code:
#include <stdio.h>  
#include<stdlib.h>  
#include<string.h>  
int main(int argc,char *argv[])  
{  
    char var_name[20];  
    strcpy(var_name,"chandan");  
    int a=80;  
    char buffer[20];  
    strcat(argv[1],"_"); 
    sprintf(buffer,"_%d",a);  
    strcat(var_name,buffer);  
  //  strcat(buffer,var_name);  
    strcat(argv[1],var_name); 
    printf("%s",argv[1]);  

   }  
          
          
          
          
Comments: